public class BindContextImpl extends Object implements BindContext, Serializable
BindContext.| Modifier and Type | Field and Description |
|---|---|
static String |
BINDING_ARGS |
static String |
COMMAND_ARGS |
static String |
CONVERTER_ARGS |
static String |
VALIDATOR_ARGS |
| Constructor and Description |
|---|
BindContextImpl(Binder binder,
Binding binding,
boolean save,
String command,
org.zkoss.zk.ui.Component comp,
org.zkoss.zk.ui.event.Event event) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(Object key)
Returns value of the given key in this Bind Context.
|
Map<Object,Object> |
getAttributes()
Returns a copy of all attributes in this Bind context.
|
Binder |
getBinder()
Returns associated Binder of this Bind context.
|
Binding |
getBinding()
Returns associated Binding of this Bind context.
|
Object |
getBindingArg(String key)
Returns binding arg value of the given key in this Bind Context.
|
Map<String,Object> |
getBindingArgs() |
Object |
getCommandArg(String key)
Returns command arg value of the given key in this Bind Context.
|
Map<String,Object> |
getCommandArgs() |
String |
getCommandName()
Returns associated command name of this Bind Context; null if not involved.
|
org.zkoss.zk.ui.Component |
getComponent()
Returns the associated component context.
|
Object |
getConverterArg(String key)
Returns converter arg value of the given key in this Bind Context.
|
Map<String,Object> |
getConverterArgs() |
org.zkoss.zk.ui.event.Event |
getTriggerEvent()
Returns associated event that trigger the associated command; null if not involved.
|
Object |
getValidatorArg(String key)
Returns validator arg value of the given key in this Bind Context.
|
Map<String,Object> |
getValidatorArgs() |
boolean |
isSave()
Returns whether currently is doing save operation.
|
Object |
setAttribute(Object key,
Object value)
Sets given value to the given key in this Bind context.
|
public static final String COMMAND_ARGS
public static final String BINDING_ARGS
public static final String VALIDATOR_ARGS
public static final String CONVERTER_ARGS
public Binder getBinder()
BindContextgetBinder in interface BindContextpublic Binding getBinding()
BindContextgetBinding in interface BindContextpublic Object getAttribute(Object key)
BindContextgetAttribute in interface BindContextkey - the key to the value.public Object setAttribute(Object key, Object value)
BindContextsetAttribute in interface BindContextkey - the key to the valuevalue - the valuepublic Map<Object,Object> getAttributes()
BindContextgetAttributes in interface BindContextpublic Object getCommandArg(String key)
BindContextgetCommandArg in interface BindContextkey - the key to the value.public Object getBindingArg(String key)
BindContextgetBindingArg in interface BindContextkey - the key to the value.public Object getConverterArg(String key)
BindContextgetConverterArg in interface BindContextkey - the key to the value.public Object getValidatorArg(String key)
BindContextgetValidatorArg in interface BindContextkey - the key to the value.public boolean isSave()
BindContextisSave in interface BindContextpublic String getCommandName()
BindContextgetCommandName in interface BindContextpublic org.zkoss.zk.ui.Component getComponent()
BindContextgetComponent in interface BindContextpublic org.zkoss.zk.ui.event.Event getTriggerEvent()
BindContextgetTriggerEvent in interface BindContextCopyright © 2020. All rights reserved.