public interface ICommandAction extends IAction
| Modifier and Type | Method and Description |
|---|---|
ICommand |
getCommand()
Gets the command
|
void |
setActionExceptionHandler(IExceptionHandler exceptionHandler)
Set's the ExceptionHandler of the action.
|
void |
setCommand(ICommand command)
Sets the actions command
|
void |
setCommand(ICommandExecutor executor)
Sets the actions command defined by a command executor
The command that will be set has no enabled checker and no exception handler
|
void |
setCommand(ICommandExecutor executor,
IEnabledChecker enabledChecker)
Sets the actions command defined by a command executor and enabled checker
The command that will be set has no exception handler
|
void |
setCommand(ICommandExecutor executor,
IEnabledChecker enabledChecker,
IExceptionHandler exceptionHandler)
Sets the actions command defined by a command executor, enabled checker and exception handler
|
void |
setCommand(ICommandExecutor executor,
IExceptionHandler exceptionHandler)
Sets the actions command defined by a command executor and exception handler
The command that will be set has no enabled checker
|
void |
setEnabled(boolean enabled)
Sets the enabled state of the action
|
void |
setIcon(IImageConstant icon)
Sets the actions icon
|
void |
setText(java.lang.String text)
Sets the actions label text
|
void |
setToolTipText(java.lang.String toolTipText)
Sets the actions tooltip text
|
execute, getAccelerator, getActionChangeObservable, getExceptionHandler, getIcon, getMnemonic, getText, getToolTipText, isEnabledvoid setText(java.lang.String text)
text - The text to setvoid setToolTipText(java.lang.String toolTipText)
toolTipText - The text to setvoid setIcon(IImageConstant icon)
icon - The icon to setvoid setEnabled(boolean enabled)
enabled - The enabled state to setvoid setCommand(ICommand command)
command - The command to set, may be null if the action should not have a commandvoid setCommand(ICommandExecutor executor)
command - The executor of the command to setvoid setCommand(ICommandExecutor executor, IEnabledChecker enabledChecker)
command - The executor of the command to setenabledChecker - The enabled checker of the command to setvoid setCommand(ICommandExecutor executor, IExceptionHandler exceptionHandler)
command - The executor of the command to setexceptionHandler - The exception handler of the command to setvoid setCommand(ICommandExecutor executor, IEnabledChecker enabledChecker, IExceptionHandler exceptionHandler)
command - The executor of the command to setenabledChecker - The enabled checker of the command to setexceptionHandler - The exception handler of the command to setICommand getCommand()
void setActionExceptionHandler(IExceptionHandler exceptionHandler)
exceptionHandler - The ExceptionHandler to setSiehe auch Jowidgets Nutzerhandbuch