Package docking.action.builder
Class MultiActionBuilder
- java.lang.Object
-
- docking.action.builder.AbstractActionBuilder<MultiActionDockingAction,ActionContext,MultiActionBuilder>
-
- docking.action.builder.MultiActionBuilder
-
public class MultiActionBuilder extends AbstractActionBuilder<MultiActionDockingAction,ActionContext,MultiActionBuilder>
Builder forMultiActionDockingAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class docking.action.builder.AbstractActionBuilder
AbstractActionBuilder.When
-
-
Field Summary
-
Fields inherited from class docking.action.builder.AbstractActionBuilder
actionCallback, actionContextClass, keyBindingType, name, owner
-
-
Constructor Summary
Constructors Constructor Description MultiActionBuilder(java.lang.String name, java.lang.String owner)
Builder constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiActionDockingAction
build()
Builds the action.MultiActionBuilder
performActionOnButtonClick(boolean b)
Configure whether to perform actions on a button click.protected MultiActionBuilder
self()
Returns this (typed for subclass) for chainingprotected void
validate()
MultiActionBuilder
withActions(java.util.List<DockingActionIf> list)
-
Methods inherited from class docking.action.builder.AbstractActionBuilder
buildAndInstall, buildAndInstallLocal, decorateAction, description, enabled, enabledWhen, helpLocation, inWindow, isKeyBindingAction, isMenuAction, isPopupAction, isToolbarAction, keyBinding, keyBinding, menuGroup, menuGroup, menuIcon, menuMnemonic, menuPath, onAction, popupMenuGroup, popupMenuGroup, popupMenuIcon, popupMenuPath, popupWhen, sharedKeyBinding, supportsDefaultToolContext, toolBarGroup, toolBarGroup, toolBarIcon, toolBarIcon, validContextWhen, withContext
-
-
-
-
Method Detail
-
self
protected MultiActionBuilder self()
Description copied from class:AbstractActionBuilder
Returns this (typed for subclass) for chaining- Specified by:
self
in classAbstractActionBuilder<MultiActionDockingAction,ActionContext,MultiActionBuilder>
- Returns:
- this for chaining
-
build
public MultiActionDockingAction build()
Description copied from class:AbstractActionBuilder
Builds the action. To build and install the action in one step, useAbstractActionBuilder.buildAndInstall(Tool)
orAbstractActionBuilder.buildAndInstallLocal(ComponentProvider)
.AbstractActionBuilder.inWindow(When)
- Specified by:
build
in classAbstractActionBuilder<MultiActionDockingAction,ActionContext,MultiActionBuilder>
- Returns:
- the newly build action
-
withActions
public MultiActionBuilder withActions(java.util.List<DockingActionIf> list)
- Parameters:
list
- aList
ofDockingActionIf
to provide to theMultiActionDockingAction
- Returns:
- this MultiActionDockingActionBuilder (for chaining)
-
performActionOnButtonClick
public MultiActionBuilder performActionOnButtonClick(boolean b)
Configure whether to perform actions on a button click. SeeMultiActionDockingAction.setPerformActionOnButtonClick(boolean)
- Parameters:
b
- true if the main action is invokable- Returns:
- this MultiActionDockingActionBuilder (for chaining)
-
validate
protected void validate()
- Overrides:
validate
in classAbstractActionBuilder<MultiActionDockingAction,ActionContext,MultiActionBuilder>
-
-