Package docking.action.builder
Class ActionBuilder
java.lang.Object
docking.action.builder.AbstractActionBuilder<DockingAction,ActionContext,ActionBuilder>
docking.action.builder.ActionBuilder
Builder for
DockingAction
s-
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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the action.protected ActionBuilder
self()
Returns this (typed for subclass) for chainingMethods 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, toolBarGroup, toolBarGroup, toolBarIcon, toolBarIcon, validate, validContextWhen, withContext, withContext
-
Constructor Details
-
ActionBuilder
Builder constructor- Parameters:
name
- the name of the action to be builtowner
- the owner of the action to be build
-
-
Method Details
-
self
Description copied from class:AbstractActionBuilder
Returns this (typed for subclass) for chaining- Specified by:
self
in classAbstractActionBuilder<DockingAction,
ActionContext, ActionBuilder> - Returns:
- this for chaining
-
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<DockingAction,
ActionContext, ActionBuilder> - Returns:
- the newly build action
-