Package docking.action
Class ToggleDockingAction
java.lang.Object
docking.action.DockingAction
docking.action.ToggleDockingAction
- All Implemented Interfaces:
DockingActionIf,ToggleDockingActionIf,HelpDescriptor
- Direct Known Subclasses:
AbstractSelectionNavigationAction,ProjectDataContextToggleAction
-
Field Summary
Fields inherited from interface docking.action.DockingActionIf
DESCRIPTION_PROPERTY, ENABLEMENT_PROPERTY, GLOBALCONTEXT_PROPERTY, KEYBINDING_DATA_PROPERTY, MENUBAR_DATA_PROPERTY, POPUP_MENU_DATA_PROPERTY, TOOLBAR_DATA_PROPERTYFields inherited from interface docking.action.ToggleDockingActionIf
SELECTED_STATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionToggleDockingAction(String name, String owner) ToggleDockingAction(String name, String owner, boolean supportsKeyBindings) ToggleDockingAction(String name, String owner, KeyBindingType keyBindingType) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionContext context) method to actually perform the action logic for this action.protected JButtonprotected JMenuItembooleanReturns true if the toggle state for this action is current selected.voidsetSelected(boolean newValue) Sets the toggle state for this action.Methods inherited from class docking.action.DockingAction
addPropertyChangeListener, addToWindowWhen, createButton, createMenuItem, dispose, enabledWhen, firePropertyChanged, getContextClass, getDefaultKeyBindingData, getDescription, getFullName, getHelpInfo, getHelpLocation, getHelpObject, getInceptionFromTheFirstClassThatIsNotUsOrABuilder, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getPopupMenuData, getPreferredKeyBindingType, getToolBarData, isAddToPopup, isEnabled, isEnabledForContext, isValidContext, markHelpUnnecessary, popupWhen, removePropertyChangeListener, setAddToAllWindows, setContextClass, setDefaultKeyBindingData, setDescription, setEnabled, setHelpLocation, setKeyBindingData, setMenuBarData, setPopupMenuData, setToolBarData, setUnvalidatedKeyBindingData, shouldAddToWindow, supportsDefaultContext, toString, validContextWhenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface docking.action.DockingActionIf
addPropertyChangeListener, createButton, createMenuComponent, createMenuItem, dispose, getContextClass, getDefaultKeyBindingData, getDescription, getFullName, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getOwnerDescription, getPopupMenuData, getToolBarData, isAddToPopup, isEnabled, isEnabledForContext, isValidContext, removePropertyChangeListener, setContextClass, setEnabled, setKeyBindingData, setUnvalidatedKeyBindingData, shouldAddToWindow, supportsDefaultContextMethods inherited from interface help.HelpDescriptor
getHelpInfo, getHelpObject
-
Constructor Details
-
ToggleDockingAction
-
ToggleDockingAction
-
ToggleDockingAction
-
-
Method Details
-
isSelected
public boolean isSelected()Description copied from interface:ToggleDockingActionIfReturns true if the toggle state for this action is current selected.- Specified by:
isSelectedin interfaceToggleDockingActionIf- Returns:
- true if the toggle state for this action is current selected.
-
setSelected
public void setSelected(boolean newValue) Description copied from interface:ToggleDockingActionIfSets the toggle state for this action.- Specified by:
setSelectedin interfaceToggleDockingActionIf- Parameters:
newValue- the new toggle state.
-
doCreateButton
- Overrides:
doCreateButtonin classDockingAction
-
doCreateMenuItem
- Overrides:
doCreateMenuItemin classDockingAction
-
actionPerformed
Description copied from interface:DockingActionIfmethod to actually perform the action logic for this action.- Specified by:
actionPerformedin interfaceDockingActionIf- Specified by:
actionPerformedin classDockingAction- Parameters:
context- theActionContextobject that provides information about where and how this action was invoked.
-