Class ClientSavePropertyBindingImpl

java.lang.Object
org.zkoss.clientbind.ClientSavePropertyBindingImpl
All Implemented Interfaces:
Binding, PropertyBinding, SaveBinding, SavePropertyBinding

public class ClientSavePropertyBindingImpl extends Object implements SavePropertyBinding
Client save property binding implementation.
Author:
jumperchen
  • Constructor Details

  • Method Details

    • save

      public void save(BindContext bindContext)
      Description copied from interface: SaveBinding
      Save data from the source attribute into the target property.
      Specified by:
      save in interface SaveBinding
      Parameters:
      bindContext - the binding runtime context
    • validate

      public void validate(ValidationContext vctx)
      Description copied from interface: SaveBinding
      do the validation by validator
      Specified by:
      validate in interface SaveBinding
    • getValidate

      public Property getValidate(BindContext bindContext)
      Description copied from interface: SaveBinding
      Returns Property to be validated.
      Specified by:
      getValidate in interface SaveBinding
      Parameters:
      bindContext - the binding runtime context
      Returns:
      Property to be validated.
    • hasValidator

      public boolean hasValidator()
      Description copied from interface: SaveBinding
      Returns whether to do validation. which means, if true, than getValidator should not return null
      Specified by:
      hasValidator in interface SaveBinding
      Returns:
      whether to do validation.
    • getValidator

      public Validator getValidator()
      Description copied from interface: SaveBinding
      return Validator to do validation
      Specified by:
      getValidator in interface SaveBinding
      Returns:
      the validator if existed
    • getValidatorArgs

      public Map<String,Object> getValidatorArgs()
      Description copied from interface: SaveBinding
      Returns an argument <tags, object> pairs map for validator.
      Specified by:
      getValidatorArgs in interface SaveBinding
      Returns:
      an argument <tags, object> pairs map for validator.
    • getBinder

      public Binder getBinder()
      Description copied from interface: Binding
      Returns the owner binder of this binding.
      Specified by:
      getBinder in interface Binding
      Returns:
      the owner binder of this binding.
    • getComponent

      public Component getComponent()
      Description copied from interface: Binding
      Returns the associated component of this binding.
      Specified by:
      getComponent in interface Binding
      Returns:
      the associated component of this binding.
    • getArgs

      public Map<String,Object> getArgs()
      Description copied from interface: Binding
      Returns an argument <tags, object> pairs map(read only).
      Specified by:
      getArgs in interface Binding
      Returns:
      an argument <tags, object> pairs map(read only).
    • getConverter

      public Converter getConverter()
      Description copied from interface: PropertyBinding
      Returns the associated _converter with this binding.
      Specified by:
      getConverter in interface PropertyBinding
      Returns:
      the associated _converter with this binding.
    • getFieldName

      public String getFieldName()
      Description copied from interface: PropertyBinding
      Returns the field name of the source object.
      Specified by:
      getFieldName in interface PropertyBinding
      Returns:
      the field name of the source object.
    • getCommandName

      public String getCommandName()
      Description copied from interface: PropertyBinding
      Returns the associated command name of this binding; null if not speicified.
      Specified by:
      getCommandName in interface PropertyBinding
      Returns:
      the associated command name of this binding; null if not speicified.
    • getPropertyString

      public String getPropertyString()
      Description copied from interface: PropertyBinding
      Returns the property expression script of this binding.
      Specified by:
      getPropertyString in interface PropertyBinding
      Returns:
      the property expression script of this binding.
    • getConditionType

      public ConditionType getConditionType()
      Description copied from interface: PropertyBinding
      Returns the condition type of this binding
      Specified by:
      getConditionType in interface PropertyBinding
    • getConverterArgs

      public Map<String,Object> getConverterArgs()
      Description copied from interface: PropertyBinding
      Returns an argument <tags, object> pairs map for converter.
      Specified by:
      getConverterArgs in interface PropertyBinding
      Returns:
      an argument <tags, object> pairs map for converter.
    • getProperty

      public ExpressionX getProperty()
      Specified by:
      getProperty in interface PropertyBinding
      Returns:
      the property expression of binding
    • getProperties

      public Set<Property> getProperties()