|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.impl.BindingImpl org.zkoss.bind.impl.PropertyBindingImpl org.zkoss.bind.impl.SavePropertyBindingImpl
public class SavePropertyBindingImpl
Implementation of SavePropertyBinding
.
Field Summary |
---|
Fields inherited from class org.zkoss.bind.impl.PropertyBindingImpl |
---|
_accessInfo, _fieldExpr |
Constructor Summary | |
---|---|
SavePropertyBindingImpl(Binder binder,
Component comp,
java.lang.String attr,
java.lang.String saveAttr,
java.lang.String saveExpr,
ConditionType conditionType,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.lang.String converterExpr,
java.util.Map<java.lang.String,java.lang.Object> converterArgs,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
|
Method Summary | |
---|---|
Property |
getValidate(BindContext ctx)
Returns Property to be validated. |
Validator |
getValidator()
return Validator to do validation |
java.util.Map<java.lang.String,java.lang.Object> |
getValidatorArgs()
Returns an argument |
java.lang.String |
getValidatorExpressionString()
|
boolean |
hasValidator()
Returns whether to do validation. which means, if true, than getValidator should not return null |
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 |
Methods inherited from class org.zkoss.bind.impl.PropertyBindingImpl |
---|
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString, toString |
Methods inherited from class org.zkoss.bind.impl.BindingImpl |
---|
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.bind.sys.PropertyBinding |
---|
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString |
Methods inherited from interface org.zkoss.bind.sys.Binding |
---|
getArgs, getBinder, getComponent |
Constructor Detail |
---|
public SavePropertyBindingImpl(Binder binder, Component comp, java.lang.String attr, java.lang.String saveAttr, java.lang.String saveExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, java.lang.String converterExpr, java.util.Map<java.lang.String,java.lang.Object> converterArgs, java.lang.String validatorExpr, java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> getValidatorArgs()
SaveBinding
getValidatorArgs
in interface SaveBinding
protected boolean ignoreTracker()
ignoreTracker
in class PropertyBindingImpl
public Validator getValidator()
SaveBinding
Validator
to do validation
getValidator
in interface SaveBinding
public java.lang.String getValidatorExpressionString()
public void save(BindContext ctx)
SaveBinding
save
in interface SaveBinding
ctx
- the binding runtime contextpublic Property getValidate(BindContext ctx)
SaveBinding
Property
to be validated.
getValidate
in interface SaveBinding
ctx
- the binding runtime context
Property
to be validated.public boolean hasValidator()
SaveBinding
hasValidator
in interface SaveBinding
public void validate(ValidationContext vctx)
SaveBinding
validate
in interface SaveBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |