Package org.zkoss.clientbind
Class ClientSaveFormBindingImpl
java.lang.Object
org.zkoss.clientbind.ClientSaveFormBindingImpl
- All Implemented Interfaces:
Binding,FormBinding,SaveBinding,SaveFormBinding
Client save form binding implementation.
- Author:
- jameschu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Returns an argument<tags, object>pairs map(read only).Returns the owner binder of this binding.Returns the associated command name of this binding; null if not specified.Returns the associated component of this binding.Returns the condition type of this bindinggetFieldExpression(BindEvaluatorX eval, String field) Returns the field expression from the given field.Returns the implicit form associated with this form binding.getFormExpression(BindEvaluatorX eval, String field) Returns the form expression from the given field.Returns the associated form id of this Binding.Returns the property expression script of this binding.getValidate(BindContext bindContext) ReturnsPropertyto be validated.getValidates(BindContext ctx) ReturnsPropertys to be validated, includes the member field of the formreturnValidatorto 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 bindContext) Save data from the source attribute into the target property.voidvalidate(ValidationContext vctx) do the validation by validator
-
Constructor Details
-
ClientSaveFormBindingImpl
-
-
Method Details
-
save
Description copied from interface:SaveBindingSave data from the source attribute into the target property.- Specified by:
savein interfaceSaveBinding- Parameters:
bindContext- the binding runtime context
-
validate
Description copied from interface:SaveBindingdo the validation by validator- Specified by:
validatein interfaceSaveBinding
-
getValidate
Description copied from interface:SaveBindingReturnsPropertyto be validated.- Specified by:
getValidatein interfaceSaveBinding- Parameters:
bindContext- the binding runtime context- Returns:
Propertyto be validated.
-
hasValidator
public boolean hasValidator()Description copied from interface:SaveBindingReturns whether to do validation. which means, if true, than getValidator should not return null- Specified by:
hasValidatorin interfaceSaveBinding- Returns:
- whether to do validation.
-
getValidator
Description copied from interface:SaveBindingreturnValidatorto do validation- Specified by:
getValidatorin interfaceSaveBinding- Returns:
- the validator if existed
-
getValidatorArgs
Description copied from interface:SaveBindingReturns an argument<tags, object>pairs map for validator.- Specified by:
getValidatorArgsin interfaceSaveBinding- Returns:
- an argument
<tags, object>pairs map for validator.
-
getBinder
Description copied from interface:BindingReturns the owner binder of this binding. -
getComponent
Description copied from interface:BindingReturns the associated component of this binding.- Specified by:
getComponentin interfaceBinding- Returns:
- the associated component of this binding.
-
getArgs
Description copied from interface:BindingReturns an argument<tags, object>pairs map(read only). -
getConverter
-
getFieldName
-
getFormBean
Description copied from interface:FormBindingReturns the implicit form associated with this form binding.- Specified by:
getFormBeanin interfaceFormBinding- Returns:
- the implicit form associated with this form binding.
-
getFormId
Description copied from interface:FormBindingReturns the associated form id of this Binding.- Specified by:
getFormIdin interfaceFormBinding- Returns:
- the associated attribute name of this component.
-
getCommandName
Description copied from interface:FormBindingReturns the associated command name of this binding; null if not specified.- Specified by:
getCommandNamein interfaceFormBinding- Returns:
- the associated command name of this binding; null if not specified.
-
getPropertyString
Description copied from interface:FormBindingReturns the property expression script of this binding.- Specified by:
getPropertyStringin interfaceFormBinding- Returns:
- the property expression script of this binding.
-
getConditionType
Description copied from interface:FormBindingReturns the condition type of this binding- Specified by:
getConditionTypein interfaceFormBinding
-
getFieldExpression
Description copied from interface:FormBindingReturns the field expression from the given field.- Specified by:
getFieldExpressionin interfaceFormBinding
-
getFormExpression
Description copied from interface:FormBindingReturns the form expression from the given field.- Specified by:
getFormExpressionin interfaceFormBinding
-
getConverterArgs
-
getProperty
-
getValidates
Description copied from interface:SaveFormBindingReturnsPropertys to be validated, includes the member field of the form- Specified by:
getValidatesin interfaceSaveFormBinding- Parameters:
ctx- the binding runtime context- Returns:
Propertyto be validated.
-