Package org.zkoss.bind
Interface BindContext
- All Known Implementing Classes:
BindContextImpl
public interface BindContext
Binding Context
- Since:
- 6.0.0
- Author:
- henrichen
-
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.
-
Method Details
-
getBinder
Binder getBinder()Returns associated Binder of this Bind context.- Returns:
- associated Binder of this Bind context.
-
getBinding
Binding getBinding()Returns associated Binding of this Bind context.- Returns:
- associated Binding of this Bind context.
-
getAttribute
Returns value of the given key in this Bind Context.- Parameters:
key- the key to the value.- Returns:
- value of the given key in this Bind Context.
-
setAttribute
Sets given value to the given key in this Bind context.- Parameters:
key- the key to the valuevalue- the value- Returns:
- previous value that associated with the given key.
-
getAttributes
Returns a copy of all attributes in this Bind context.- Returns:
- a copy of all attributes in this Bind context.
-
isSave
boolean isSave()Returns whether currently is doing save operation.- Returns:
- whether currently is doing save operation.
-
getCommandName
String getCommandName()Returns associated command name of this Bind Context; null if not involved.- Returns:
- associated command name of this Bind Context; null if not involved.
-
getComponent
org.zkoss.zk.ui.Component getComponent()Returns the associated component context.- Returns:
- the associated component context.
-
getTriggerEvent
org.zkoss.zk.ui.event.Event getTriggerEvent()Returns associated event that trigger the associated command; null if not involved.- Returns:
- associated event that trigger the associated command; null if not involved.
-
getCommandArg
Returns command arg value of the given key in this Bind Context.- Parameters:
key- the key to the value.- Returns:
- value of command arg of the given key in this Bind Context.
-
getBindingArg
Returns binding arg value of the given key in this Bind Context.- Parameters:
key- the key to the value.- Returns:
- value of binding arg of the given key in this Bind Context.
-
getConverterArg
Returns converter arg value of the given key in this Bind Context.- Parameters:
key- the key to the value.- Returns:
- value of converter arg of the given key in this Bind Context.
-
getValidatorArg
Returns validator arg value of the given key in this Bind Context.- Parameters:
key- the key to the value.- Returns:
- value of validator arg of the given key in this Bind Context.
-