Package docking
Class ActionToGuiHelper
java.lang.Object
docking.ActionToGuiHelper
A class that exists primarily to provide access to action-related package-level methods of the
DockingWindowManager
. This allows the manager's interface to hide methods that
don't make sense for public consumption.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocalAction
(ComponentProvider provider, DockingActionIf action) Adds an action that will be associated with the given provider.void
addToolAction
(DockingActionIf action) Adds an action to the global menu or toolbar which appear in the main frame.getComponentActions
(ComponentProvider provider) Get an iterator over the actions for the given providergetLocalActions
(ComponentProvider provider) void
Call this method to signal that key bindings for one or more actions have changedvoid
removeProviderAction
(ComponentProvider provider, DockingActionIf action) Removes the action from the given provider's header bar.void
removeToolAction
(DockingActionIf action) Removes the given action from the global menu and toolbar
-
Constructor Details
-
ActionToGuiHelper
-
-
Method Details
-
addToolAction
Adds an action to the global menu or toolbar which appear in the main frame. If the action has a menu path, it will be in the menu. If it has an icon, it will appear in the toolbar.- Parameters:
action
- the action to be added
-
removeToolAction
Removes the given action from the global menu and toolbar- Parameters:
action
- the action to be removed
-
addLocalAction
Adds an action that will be associated with the given provider. These actions will appear in the local header for the component as a toolbar button or a drop-down menu item if it has an icon and menu path respectively.- Parameters:
provider
- the provider whose header on which the action is to be placedaction
- the action to add to the providers header bar
-
getComponentActions
Get an iterator over the actions for the given provider- Parameters:
provider
- the component provider for which to iterate over all its owned actions- Returns:
- null if the provider does not exist in the window manager
-
removeProviderAction
Removes the action from the given provider's header bar.- Parameters:
provider
- the provider whose header bar from which the action should be removed.action
- the action to be removed from the provider's header bar.
-
keyBindingsChanged
public void keyBindingsChanged()Call this method to signal that key bindings for one or more actions have changed -
getLocalActions
-
getGlobalActions
-