Class PropertyBindingImpl

java.lang.Object
org.zkoss.bind.impl.BindingImpl
org.zkoss.bind.impl.PropertyBindingImpl
All Implemented Interfaces:
Serializable, Binding, PropertyBinding
Direct Known Subclasses:
InitPropertyBindingImpl, LoadPropertyBindingImpl, SavePropertyBindingImpl

public abstract class PropertyBindingImpl extends BindingImpl implements PropertyBinding
A base implementation of PropertyBinding.
Since:
6.0.0
Author:
henrichen
See Also:
  • Field Details

    • _fieldExpr

      protected final org.zkoss.xel.ExpressionX _fieldExpr
    • _accessInfo

      protected final AccessInfo _accessInfo
  • Constructor Details

    • PropertyBindingImpl

      protected PropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, String fieldName, String fieldExpr, String accessExpr, ConditionType conditionType, String command, Map<String,Object> bindingArgs, String converterExpr, Map<String,Object> converterArgs)
      Parameters:
      binder -
      comp -
      fieldName - the name of component field (ex, style, value)
      fieldExpr - the EL expression to access component field (ex, self.style, self.value)
      accessExpr - the binding expression , to access the bean
      conditionType - the condition type
      command - the command, if the conditionType is not prompt, then command must not null
      bindingArgs -
      converterExpr -
      converterArgs -
  • Method Details

    • 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.
    • ignoreTracker

      protected boolean ignoreTracker()
    • 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
    • getProperty

      public org.zkoss.xel.ExpressionX getProperty()
      Specified by:
      getProperty in interface PropertyBinding
      Returns:
      the property expression of binding
    • toString

      public String toString()
      Overrides:
      toString in class Object