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
ConstructorDescriptionActionAdapter
(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 TypeMethodDescriptionvoid
void
boolean
void
void
void
void
setDefaultAction
(Action defaultAction) void
setEnabled
(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:
addPropertyChangeListener
in interfaceAction
-
getValue
-
isEnabled
public boolean isEnabled() -
putValue
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceAction
-
setEnabled
public void setEnabled(boolean b) - Specified by:
setEnabled
in interfaceAction
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-