Package org.zkoss.bind.sys
Interface SaveBinding
- All Superinterfaces:
Binding
- All Known Subinterfaces:
SaveFormBinding,SavePropertyBinding
- All Known Implementing Classes:
SaveFormBindingImpl,SavePropertyBindingImpl
Binding for saving.
- Since:
- 6.0.0
- Author:
- henrichen
-
Method Summary
Modifier and TypeMethodDescriptiongetValidate(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 nullvoidsave(BindContext ctx) Save data from the source attribute into the target property.voidvalidate(ValidationContext vctx) do the validation by validatorMethods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
Method Details
-
save
Save data from the source attribute into the target property.- Parameters:
ctx- the binding runtime context
-
validate
do the validation by validator- Parameters:
vctx-
-
getValidate
ReturnsPropertyto be validated.- Parameters:
ctx- the binding runtime context- Returns:
Propertyto be validated.
-
hasValidator
boolean hasValidator()Returns whether to do validation. which means, if true, than getValidator should not return null- Returns:
- whether to do validation.
-
getValidator
Validator getValidator()returnValidatorto do validation- Returns:
- the validator if existed
-
getValidatorArgs
Returns an argument<tags, object>pairs map for validator.- Returns:
- an argument
<tags, object>pairs map for validator.
-