Class BindContextImpl

java.lang.Object
org.zkoss.bind.impl.BindContextImpl
All Implemented Interfaces:
Serializable, BindContext

public class BindContextImpl extends Object implements BindContext, Serializable
Implementation of BindContext.
Since:
6.0.0
Author:
henrichen
See Also:
  • Field Details

  • Constructor Details

    • BindContextImpl

      public BindContextImpl(Binder binder, Binding binding, boolean save, String command, org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event)
  • Method Details

    • getBinder

      public Binder getBinder()
      Description copied from interface: BindContext
      Returns associated Binder of this Bind context.
      Specified by:
      getBinder in interface BindContext
      Returns:
      associated Binder of this Bind context.
    • getBinding

      public Binding getBinding()
      Description copied from interface: BindContext
      Returns associated Binding of this Bind context.
      Specified by:
      getBinding in interface BindContext
      Returns:
      associated Binding of this Bind context.
    • getAttribute

      public Object getAttribute(Object key)
      Description copied from interface: BindContext
      Returns value of the given key in this Bind Context.
      Specified by:
      getAttribute in interface BindContext
      Parameters:
      key - the key to the value.
      Returns:
      value of the given key in this Bind Context.
    • setAttribute

      public Object setAttribute(Object key, Object value)
      Description copied from interface: BindContext
      Sets given value to the given key in this Bind context.
      Specified by:
      setAttribute in interface BindContext
      Parameters:
      key - the key to the value
      value - the value
      Returns:
      previous value that associated with the given key.
    • getAttributes

      public Map<Object,Object> getAttributes()
      Description copied from interface: BindContext
      Returns a copy of all attributes in this Bind context.
      Specified by:
      getAttributes in interface BindContext
      Returns:
      a copy of all attributes in this Bind context.
    • getCommandArg

      public Object getCommandArg(String key)
      Description copied from interface: BindContext
      Returns command arg value of the given key in this Bind Context.
      Specified by:
      getCommandArg in interface BindContext
      Parameters:
      key - the key to the value.
      Returns:
      value of command arg of the given key in this Bind Context.
    • getBindingArg

      public Object getBindingArg(String key)
      Description copied from interface: BindContext
      Returns binding arg value of the given key in this Bind Context.
      Specified by:
      getBindingArg in interface BindContext
      Parameters:
      key - the key to the value.
      Returns:
      value of binding arg of the given key in this Bind Context.
    • getConverterArg

      public Object getConverterArg(String key)
      Description copied from interface: BindContext
      Returns converter arg value of the given key in this Bind Context.
      Specified by:
      getConverterArg in interface BindContext
      Parameters:
      key - the key to the value.
      Returns:
      value of converter arg of the given key in this Bind Context.
    • getValidatorArg

      public Object getValidatorArg(String key)
      Description copied from interface: BindContext
      Returns validator arg value of the given key in this Bind Context.
      Specified by:
      getValidatorArg in interface BindContext
      Parameters:
      key - the key to the value.
      Returns:
      value of validator arg of the given key in this Bind Context.
    • getCommandArgs

      public Map<String,Object> getCommandArgs()
    • getBindingArgs

      public Map<String,Object> getBindingArgs()
    • getConverterArgs

      public Map<String,Object> getConverterArgs()
    • getValidatorArgs

      public Map<String,Object> getValidatorArgs()
    • isSave

      public boolean isSave()
      Description copied from interface: BindContext
      Returns whether currently is doing save operation.
      Specified by:
      isSave in interface BindContext
      Returns:
      whether currently is doing save operation.
    • getCommandName

      public String getCommandName()
      Description copied from interface: BindContext
      Returns associated command name of this Bind Context; null if not involved.
      Specified by:
      getCommandName in interface BindContext
      Returns:
      associated command name of this Bind Context; null if not involved.
    • getComponent

      public org.zkoss.zk.ui.Component getComponent()
      Description copied from interface: BindContext
      Returns the associated component context.
      Specified by:
      getComponent in interface BindContext
      Returns:
      the associated component context.
    • getTriggerEvent

      public org.zkoss.zk.ui.event.Event getTriggerEvent()
      Description copied from interface: BindContext
      Returns associated event that trigger the associated command; null if not involved.
      Specified by:
      getTriggerEvent in interface BindContext
      Returns:
      associated event that trigger the associated command; null if not involved.