Package org.zkoss.bind.impl
Class SavePropertyBindingImpl
java.lang.Object
org.zkoss.bind.impl.BindingImpl
org.zkoss.bind.impl.PropertyBindingImpl
org.zkoss.bind.impl.SavePropertyBindingImpl
- All Implemented Interfaces:
Serializable,Binding,PropertyBinding,SaveBinding,SavePropertyBinding
Implementation of
SavePropertyBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Field Summary
Fields inherited from class org.zkoss.bind.impl.PropertyBindingImpl
_accessInfo, _fieldExpr -
Constructor Summary
ConstructorsConstructorDescriptionSavePropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, String attr, String saveAttr, String saveExpr, ConditionType conditionType, String command, Map<String, Object> bindingArgs, String converterExpr, Map<String, Object> converterArgs, String validatorExpr, Map<String, Object> validatorArgs) -
Method Summary
Modifier and TypeMethodDescriptionInternal use only, only for collectionsgetValidate(BindContext ctx) ReturnsPropertyto be validated.returnValidatorto do validationReturns an argument<tags, object>pairs map for validator.booleanReturns whether to do validation. which means, if true, than getValidator should not return nullprotected booleanvoidsave(BindContext ctx) Save data from the source attribute into the target property.voidvalidate(ValidationContext vctx) do the validation by validatorMethods inherited from class org.zkoss.bind.impl.PropertyBindingImpl
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString, toStringMethods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponentMethods inherited from interface org.zkoss.bind.sys.PropertyBinding
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString
-
Constructor Details
-
SavePropertyBindingImpl
public SavePropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, String attr, String saveAttr, String saveExpr, ConditionType conditionType, String command, Map<String, Object> bindingArgs, String converterExpr, Map<String, Object> converterArgs, String validatorExpr, Map<String, Object> validatorArgs)
-
-
Method Details
-
getValidatorArgs
Description copied from interface:SaveBindingReturns an argument<tags, object>pairs map for validator.- Specified by:
getValidatorArgsin interfaceSaveBinding- Returns:
- an argument
<tags, object>pairs map for validator.
-
ignoreTracker
protected boolean ignoreTracker()- Overrides:
ignoreTrackerin classPropertyBindingImpl
-
getValidator
Description copied from interface:SaveBindingreturnValidatorto do validation- Specified by:
getValidatorin interfaceSaveBinding- Returns:
- the validator if existed
-
getValidatorExpressionString
-
save
Description copied from interface:SaveBindingSave data from the source attribute into the target property.- Specified by:
savein interfaceSaveBinding- Parameters:
ctx- the binding runtime context
-
getValidate
Description copied from interface:SaveBindingReturnsPropertyto be validated.- Specified by:
getValidatein interfaceSaveBinding- Parameters:
ctx- the binding runtime context- Returns:
Propertyto be validated.
-
hasValidator
public boolean hasValidator()Description copied from interface:SaveBindingReturns whether to do validation. which means, if true, than getValidator should not return null- Specified by:
hasValidatorin interfaceSaveBinding- Returns:
- whether to do validation.
-
validate
Description copied from interface:SaveBindingdo the validation by validator- Specified by:
validatein interfaceSaveBinding
-
getBasePropertyIfFromCollection
Internal use only, only for collections
-