Package org.zkoss.bind.impl
Class CommandBindingImpl
- java.lang.Object
-
- org.zkoss.bind.impl.BindingImpl
-
- org.zkoss.bind.impl.CommandBindingImpl
-
- All Implemented Interfaces:
java.io.Serializable,Binding,CommandBinding
public class CommandBindingImpl extends BindingImpl implements CommandBinding
Implementation of CommandBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String evtnm, java.lang.String cmdScript, java.util.Map<java.lang.String,java.lang.Object> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(BindContext ctx)Call the command associated with this binding.org.zkoss.xel.ExpressionXgetCommand()java.lang.StringgetCommandString()Returns the command expression in string.java.lang.StringgetEventName()java.lang.StringtoString()-
Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
-
-
-
Constructor Detail
-
CommandBindingImpl
public CommandBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String evtnm, java.lang.String cmdScript, java.util.Map<java.lang.String,java.lang.Object> args)
-
-
Method Detail
-
getEventName
public java.lang.String getEventName()
-
getCommand
public org.zkoss.xel.ExpressionX getCommand()
-
getCommandString
public java.lang.String getCommandString()
Description copied from interface:CommandBindingReturns the command expression in string.- Specified by:
getCommandStringin interfaceCommandBinding- Returns:
- the command expression in string.
-
execute
public void execute(BindContext ctx)
Description copied from interface:CommandBindingCall the command associated with this binding.- Specified by:
executein interfaceCommandBinding- Parameters:
ctx- the binding runtime context
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-