public class SaveFormBindingImpl extends FormBindingImpl implements SaveFormBinding
SaveFormBinding
._accessInfo, _formId
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
Form |
getFormBean(BindContext ctx) |
Property |
getValidate(BindContext ctx)
Returns
Property to be validated. |
java.util.Set<Property> |
getValidates(BindContext ctx)
Returns
Property s 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
|
getBaseExpression, getCommandName, getConditionType, getFieldExpression, getFormBean, getFormExpression, getFormId, getPropertyString, initFormBean, toString
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCommandName, getConditionType, getFieldExpression, getFormBean, getFormExpression, getFormId, getPropertyString
getArgs, getBinder, getComponent
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)
public java.util.Map<java.lang.String,java.lang.Object> getValidatorArgs()
SaveBinding
getValidatorArgs
in interface SaveBinding
protected boolean ignoreTracker()
ignoreTracker
in class FormBindingImpl
public Validator getValidator()
SaveBinding
Validator
to do validationgetValidator
in interface SaveBinding
public Form getFormBean(BindContext ctx)
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 contextProperty
to be validated.public java.util.Set<Property> getValidates(BindContext ctx)
SaveFormBinding
Property
s to be validated, includes the member field of the formgetValidates
in interface SaveFormBinding
ctx
- the binding runtime contextProperty
to be validated.public boolean hasValidator()
SaveBinding
hasValidator
in interface SaveBinding
public java.lang.String getValidatorExpressionString()
public void validate(ValidationContext vctx)
SaveBinding
validate
in interface SaveBinding
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.