public interface IActionBuilder
Modifier and Type | Method and Description |
---|---|
ICommandAction |
build()
Creates a new command action defined by the builder setup
|
IActionBuilder |
setAccelerator(Accelerator accelerator)
Sets the actions accelerator
|
IActionBuilder |
setAccelerator(char key,
Modifier... modifier)
Sets the actions accelerator
|
IActionBuilder |
setAccelerator(VirtualKey virtualKey,
Modifier... modifier)
Sets the actions accelerator
|
IActionBuilder |
setActionExceptionHandler(IExceptionHandler exceptionHandler)
Set's the ExceptionHandler of the action.
|
IActionBuilder |
setCommand(ICommand command)
Sets the actions command
|
IActionBuilder |
setCommand(ICommandExecutor command)
Sets the actions command defined by a command executor
The command that will be set has no enabled checker and no exception handler
|
IActionBuilder |
setCommand(ICommandExecutor command,
IEnabledChecker executableStateChecker)
Sets the actions command defined by a command executor and enabled checker
The command that will be set has no exception handler
|
IActionBuilder |
setCommand(ICommandExecutor command,
IEnabledChecker enabledChecker,
IExceptionHandler exceptionHandler)
Sets the actions command defined by a command executor, enabled checker and exception handler
|
IActionBuilder |
setCommand(ICommandExecutor command,
IExceptionHandler exceptionHandler)
Sets the actions command defined by a command executor and exception handler
The command that will be set has no enabled checker
|
IActionBuilder |
setEnabled(boolean enabled)
Sets the enabled state of the action
|
IActionBuilder |
setIcon(IImageConstant icon)
Sets the actions icon
|
IActionBuilder |
setMnemonic(char mnemonic)
Sets the actions mnemonic
|
IActionBuilder |
setMnemonic(java.lang.Character mnemonic)
Sets the actions mnemonic
|
IActionBuilder |
setText(java.lang.String text)
Sets the actions label text
|
IActionBuilder |
setToolTipText(java.lang.String toolTipText)
Sets the actions tooltip text
|
IActionBuilder setText(java.lang.String text)
text
- The text to setIActionBuilder setToolTipText(java.lang.String toolTipText)
toolTipText
- The text to setIActionBuilder setIcon(IImageConstant icon)
icon
- The icon to setIActionBuilder setMnemonic(java.lang.Character mnemonic)
mnemonic
- The mnemonic to set, may be nullIActionBuilder setMnemonic(char mnemonic)
mnemonic
- The mnemonic to setIActionBuilder setAccelerator(Accelerator accelerator)
mnemonic
- The accelerator to setIActionBuilder setAccelerator(char key, Modifier... modifier)
key
- The accelerator keymodifier
- The accelerator modifierIActionBuilder setAccelerator(VirtualKey virtualKey, Modifier... modifier)
virtualKey
- The accelerator keymodifier
- The accelerator modifierIActionBuilder setEnabled(boolean enabled)
enabled
- The enabled state to setIActionBuilder setCommand(ICommand command)
command
- The command to set, may be null if the action should not have a commandIActionBuilder setCommand(ICommandExecutor command)
command
- The executor of the command to setIActionBuilder setCommand(ICommandExecutor command, IEnabledChecker executableStateChecker)
command
- The executor of the command to setenabledChecker
- The enabled checker of the command to setIActionBuilder setCommand(ICommandExecutor command, IExceptionHandler exceptionHandler)
command
- The executor of the command to setexceptionHandler
- The exception handler of the command to setIActionBuilder setCommand(ICommandExecutor command, 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 setIActionBuilder setActionExceptionHandler(IExceptionHandler exceptionHandler)
exceptionHandler
- The ExceptionHandler to setICommandAction build()
Siehe auch Jowidgets Nutzerhandbuch