|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.bind.impl.BindingImpl
org.zkoss.bind.impl.FormBindingImpl
org.zkoss.bind.impl.SaveFormBindingImpl
public class SaveFormBindingImpl
Implementation of SaveFormBinding.
| Field Summary |
|---|
| Fields inherited from class org.zkoss.bind.impl.FormBindingImpl |
|---|
_accessInfo, _formId |
| Constructor Summary | |
|---|---|
SaveFormBindingImpl(Binder binder,
Component comp,
java.lang.String formId,
java.lang.String saveExpr,
ConditionType conditionType,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
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. |
java.util.Set<Property> |
getValidates(BindContext ctx)
Returns Propertys to be validated, includes the member field of the form |
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.FormBindingImpl |
|---|
getBaseExpression, getCommandName, getConditionType, getFieldExpression, getFormBean, getFormExpression, getFormId, 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.FormBinding |
|---|
getCommandName, getConditionType, getFormBean, getFormId, getPropertyString |
| Methods inherited from interface org.zkoss.bind.sys.Binding |
|---|
getArgs, getBinder, getComponent |
| Constructor Detail |
|---|
public SaveFormBindingImpl(Binder binder,
Component comp,
java.lang.String formId,
java.lang.String saveExpr,
ConditionType conditionType,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
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 SaveBindingprotected boolean ignoreTracker()
ignoreTracker in class FormBindingImplpublic Validator getValidator()
SaveBindingValidator to do validation
getValidator in interface SaveBindingpublic void save(BindContext ctx)
SaveBinding
save in interface SaveBindingctx - the binding runtime contextpublic Property getValidate(BindContext ctx)
SaveBindingProperty to be validated.
getValidate in interface SaveBindingctx - the binding runtime context
Property to be validated.public java.util.Set<Property> getValidates(BindContext ctx)
SaveFormBindingPropertys to be validated, includes the member field of the form
getValidates in interface SaveFormBindingctx - the binding runtime context
Property to be validated.public boolean hasValidator()
SaveBinding
hasValidator in interface SaveBindingpublic java.lang.String getValidatorExpressionString()
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 | |||||||||