public class ActionBuilder extends java.lang.Object implements IActionBuilder
| Constructor and Description |
|---|
ActionBuilder() |
ActionBuilder(IActionBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
ICommandAction |
build()
Creates a new command action defined by the builder setup
|
static IActionBuilder |
builder() |
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
|
public ActionBuilder()
public ActionBuilder(IActionBuilder builder)
public IActionBuilder setText(java.lang.String text)
IActionBuildersetText in interface IActionBuildertext - The text to setpublic IActionBuilder setToolTipText(java.lang.String toolTipText)
IActionBuildersetToolTipText in interface IActionBuildertoolTipText - The text to setpublic IActionBuilder setIcon(IImageConstant icon)
IActionBuildersetIcon in interface IActionBuildericon - The icon to setpublic IActionBuilder setMnemonic(java.lang.Character mnemonic)
IActionBuildersetMnemonic in interface IActionBuildermnemonic - The mnemonic to set, may be nullpublic IActionBuilder setMnemonic(char mnemonic)
IActionBuildersetMnemonic in interface IActionBuildermnemonic - The mnemonic to setpublic IActionBuilder setAccelerator(Accelerator accelerator)
IActionBuildersetAccelerator in interface IActionBuilderpublic IActionBuilder setAccelerator(char key, Modifier... modifier)
IActionBuildersetAccelerator in interface IActionBuilderkey - The accelerator keymodifier - The accelerator modifierpublic IActionBuilder setAccelerator(VirtualKey virtualKey, Modifier... modifier)
IActionBuildersetAccelerator in interface IActionBuildervirtualKey - The accelerator keymodifier - The accelerator modifierpublic IActionBuilder setEnabled(boolean enabled)
IActionBuildersetEnabled in interface IActionBuilderenabled - The enabled state to setpublic IActionBuilder setCommand(ICommand command)
IActionBuildersetCommand in interface IActionBuildercommand - The command to set, may be null if the action should not have a commandpublic IActionBuilder setCommand(ICommandExecutor command)
IActionBuildersetCommand in interface IActionBuildercommand - The executor of the command to setpublic IActionBuilder setCommand(ICommandExecutor command, IEnabledChecker executableStateChecker)
IActionBuildersetCommand in interface IActionBuildercommand - The executor of the command to setpublic IActionBuilder setCommand(ICommandExecutor command, IExceptionHandler exceptionHandler)
IActionBuildersetCommand in interface IActionBuildercommand - The executor of the command to setexceptionHandler - The exception handler of the command to setpublic IActionBuilder setCommand(ICommandExecutor command, IEnabledChecker enabledChecker, IExceptionHandler exceptionHandler)
IActionBuildersetCommand in interface IActionBuildercommand - The executor of the command to setenabledChecker - The enabled checker of the command to setexceptionHandler - The exception handler of the command to setpublic IActionBuilder setActionExceptionHandler(IExceptionHandler exceptionHandler)
IActionBuildersetActionExceptionHandler in interface IActionBuilderexceptionHandler - The ExceptionHandler to setpublic ICommandAction build()
IActionBuilderbuild in interface IActionBuilderpublic static IActionBuilder builder()
Siehe auch Jowidgets Nutzerhandbuch