Package org.zkoss.bind.impl
Class BindContextImpl
java.lang.Object
org.zkoss.bind.impl.BindContextImpl
- All Implemented Interfaces:
Serializable,BindContext
Implementation of
BindContext.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBindContextImpl(Binder binder, Binding binding, boolean save, String command, org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(Object key) Returns value of the given key in this Bind Context.Returns a copy of all attributes in this Bind context.Returns associated Binder of this Bind context.Returns associated Binding of this Bind context.getBindingArg(String key) Returns binding arg value of the given key in this Bind Context.getCommandArg(String key) Returns command arg value of the given key in this Bind Context.Returns associated command name of this Bind Context; null if not involved.org.zkoss.zk.ui.ComponentReturns the associated component context.getConverterArg(String key) Returns converter arg value of the given key in this Bind Context.org.zkoss.zk.ui.event.EventReturns associated event that trigger the associated command; null if not involved.getValidatorArg(String key) Returns validator arg value of the given key in this Bind Context.booleanisSave()Returns whether currently is doing save operation.setAttribute(Object key, Object value) Sets given value to the given key in this Bind context.
-
Field Details
-
COMMAND_ARGS
- See Also:
-
BINDING_ARGS
- See Also:
-
VALIDATOR_ARGS
- See Also:
-
CONVERTER_ARGS
- See Also:
-
-
Constructor Details
-
BindContextImpl
-
-
Method Details
-
getBinder
Description copied from interface:BindContextReturns associated Binder of this Bind context.- Specified by:
getBinderin interfaceBindContext- Returns:
- associated Binder of this Bind context.
-
getBinding
Description copied from interface:BindContextReturns associated Binding of this Bind context.- Specified by:
getBindingin interfaceBindContext- Returns:
- associated Binding of this Bind context.
-
getAttribute
Description copied from interface:BindContextReturns value of the given key in this Bind Context.- Specified by:
getAttributein interfaceBindContext- Parameters:
key- the key to the value.- Returns:
- value of the given key in this Bind Context.
-
setAttribute
Description copied from interface:BindContextSets given value to the given key in this Bind context.- Specified by:
setAttributein interfaceBindContext- Parameters:
key- the key to the valuevalue- the value- Returns:
- previous value that associated with the given key.
-
getAttributes
Description copied from interface:BindContextReturns a copy of all attributes in this Bind context.- Specified by:
getAttributesin interfaceBindContext- Returns:
- a copy of all attributes in this Bind context.
-
getCommandArg
Description copied from interface:BindContextReturns command arg value of the given key in this Bind Context.- Specified by:
getCommandArgin interfaceBindContext- Parameters:
key- the key to the value.- Returns:
- value of command arg of the given key in this Bind Context.
-
getBindingArg
Description copied from interface:BindContextReturns binding arg value of the given key in this Bind Context.- Specified by:
getBindingArgin interfaceBindContext- Parameters:
key- the key to the value.- Returns:
- value of binding arg of the given key in this Bind Context.
-
getConverterArg
Description copied from interface:BindContextReturns converter arg value of the given key in this Bind Context.- Specified by:
getConverterArgin interfaceBindContext- Parameters:
key- the key to the value.- Returns:
- value of converter arg of the given key in this Bind Context.
-
getValidatorArg
Description copied from interface:BindContextReturns validator arg value of the given key in this Bind Context.- Specified by:
getValidatorArgin interfaceBindContext- Parameters:
key- the key to the value.- Returns:
- value of validator arg of the given key in this Bind Context.
-
getCommandArgs
-
getBindingArgs
-
getConverterArgs
-
getValidatorArgs
-
isSave
public boolean isSave()Description copied from interface:BindContextReturns whether currently is doing save operation.- Specified by:
isSavein interfaceBindContext- Returns:
- whether currently is doing save operation.
-
getCommandName
Description copied from interface:BindContextReturns associated command name of this Bind Context; null if not involved.- Specified by:
getCommandNamein interfaceBindContext- Returns:
- associated command name of this Bind Context; null if not involved.
-
getComponent
public org.zkoss.zk.ui.Component getComponent()Description copied from interface:BindContextReturns the associated component context.- Specified by:
getComponentin interfaceBindContext- Returns:
- the associated component context.
-
getTriggerEvent
public org.zkoss.zk.ui.event.Event getTriggerEvent()Description copied from interface:BindContextReturns associated event that trigger the associated command; null if not involved.- Specified by:
getTriggerEventin interfaceBindContext- Returns:
- associated event that trigger the associated command; null if not involved.
-