Package docking.actions
Interface DockingToolActions
- All Known Implementing Classes:
ToolActions
public interface DockingToolActions
Represents the collection of actions registered with the tool, along with method for adding
and removing actions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGlobalAction
(DockingActionIf action) Adds the given action that is enabled, regardless of the active providervoid
addLocalAction
(ComponentProvider provider, DockingActionIf action) Adds the given action that enabled when the given provider is activegetActions
(String owner) Returns all actions with the given ownerReturns all actions known to the toolgetLocalAction
(ComponentProvider provider, String actionName) Gets the provider action by the given namevoid
Allows clients to register an action by using a placeholder.void
removeActions
(ComponentProvider provider) Removes all local actions for the given providervoid
removeActions
(String owner) Removes all global actions for the given ownervoid
removeGlobalAction
(DockingActionIf action) Removes the given global actionvoid
removeLocalAction
(ComponentProvider provider, DockingActionIf action) Removes the given provider's local action
-
Method Details
-
addLocalAction
Adds the given action that enabled when the given provider is active- Parameters:
provider
- the provideraction
- the action
-
getLocalAction
Gets the provider action by the given name- Parameters:
provider
- the provideractionName
- the action name- Returns:
- the action
-
removeLocalAction
Removes the given provider's local action- Parameters:
provider
- the provideraction
- the action
-
addGlobalAction
Adds the given action that is enabled, regardless of the active provider- Parameters:
action
- the action
-
removeGlobalAction
Removes the given global action- Parameters:
action
- the action
-
removeActions
Removes all global actions for the given owner- Parameters:
owner
- the owner
-
removeActions
Removes all local actions for the given provider- Parameters:
provider
- the provider
-
getActions
Returns all actions with the given owner- Parameters:
owner
- the owner- Returns:
- the actions
-
getAllActions
Set<DockingActionIf> getAllActions()Returns all actions known to the tool- Returns:
- the actions
-