Package docking.actions
Class ActionAdapter
java.lang.Object
docking.actions.ActionAdapter
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,EventListener,Action
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionActionAdapter(DockingActionIf dockingAction) This is only for use when converting actions from docking actions to those to be used in Swing components.ActionAdapter(DockingActionIf dockingAction, ActionContextProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanvoidvoidvoidvoidsetDefaultAction(Action defaultAction) voidsetEnabled(boolean b)
-
Constructor Details
-
ActionAdapter
This is only for use when converting actions from docking actions to those to be used in Swing components. The context system does not work as expected in this case.Most clients should use
ActionAdapter(DockingActionIf, ActionContextProvider)- Parameters:
dockingAction- the action to adapt
-
ActionAdapter
-
-
Method Details
-
setDefaultAction
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceAction
-
getValue
-
isEnabled
public boolean isEnabled() -
putValue
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceAction
-
setEnabled
public void setEnabled(boolean b) - Specified by:
setEnabledin interfaceAction
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-