Package org.zkoss.bind
Interface BindContext
-
- All Known Implementing Classes:
BindContextImpl
public interface BindContextBinding Context- Since:
- 6.0.0
- Author:
- henrichen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.Object key)Returns value of the given key in this Bind Context.java.util.Map<java.lang.Object,java.lang.Object>getAttributes()Returns a copy of all attributes in this Bind context.BindergetBinder()Returns associated Binder of this Bind context.BindinggetBinding()Returns associated Binding of this Bind context.java.lang.ObjectgetBindingArg(java.lang.String key)Returns binding arg value of the given key in this Bind Context.java.lang.ObjectgetCommandArg(java.lang.String key)Returns command arg value of the given key in this Bind Context.java.lang.StringgetCommandName()Returns associated command name of this Bind Context; null if not involved.org.zkoss.zk.ui.ComponentgetComponent()Returns the associated component context.java.lang.ObjectgetConverterArg(java.lang.String key)Returns converter arg value of the given key in this Bind Context.org.zkoss.zk.ui.event.EventgetTriggerEvent()Returns associated event that trigger the associated command; null if not involved.java.lang.ObjectgetValidatorArg(java.lang.String key)Returns validator arg value of the given key in this Bind Context.booleanisSave()Returns whether currently is doing save operation.java.lang.ObjectsetAttribute(java.lang.Object key, java.lang.Object value)Sets given value to the given key in this Bind context.
-
-
-
Method Detail
-
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
java.lang.Object getAttribute(java.lang.Object key)
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
java.lang.Object setAttribute(java.lang.Object key, java.lang.Object value)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
java.util.Map<java.lang.Object,java.lang.Object> 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
java.lang.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
java.lang.Object getCommandArg(java.lang.String key)
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
java.lang.Object getBindingArg(java.lang.String key)
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
java.lang.Object getConverterArg(java.lang.String key)
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
java.lang.Object getValidatorArg(java.lang.String key)
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.
-
-