public class SavePropertyBindingImpl extends PropertyBindingImpl implements SavePropertyBinding
SavePropertyBinding._accessInfo, _fieldExpr| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
Property |
getBasePropertyIfFromCollection()
Internal use only, only for collections
|
Property |
getValidate(BindContext ctx)
Returns
Property to be validated. |
Validator |
getValidator()
return
Validator to do validation |
Map<String,Object> |
getValidatorArgs()
Returns an argument
|
String |
getValidatorExpressionString() |
boolean |
hasValidator()
Returns whether to do validation.
|
protected boolean |
ignoreTracker() |
void |
save(BindContext ctx)
Save data from the source attribute into the target property.
|
void |
validate(ValidationContext vctx)
do the validation by validator
|
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString, toStringcontainsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyStringgetArgs, getBinder, getComponentpublic 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)
public Map<String,Object> getValidatorArgs()
SaveBindinggetValidatorArgs in interface SaveBindingprotected boolean ignoreTracker()
ignoreTracker in class PropertyBindingImplpublic Validator getValidator()
SaveBindingValidator to do validationgetValidator in interface SaveBindingpublic String getValidatorExpressionString()
public void save(BindContext ctx)
SaveBindingsave in interface SaveBindingctx - the binding runtime contextpublic Property getValidate(BindContext ctx)
SaveBindingProperty to be validated.getValidate in interface SaveBindingctx - the binding runtime contextProperty to be validated.public boolean hasValidator()
SaveBindinghasValidator in interface SaveBindingpublic void validate(ValidationContext vctx)
SaveBindingvalidate in interface SaveBindingpublic Property getBasePropertyIfFromCollection()
Copyright © 2020. All rights reserved.