Package jpicedt.ui.action
Class ActionRegistry
- java.lang.Object
-
- javax.swing.ActionMap
-
- jpicedt.ui.action.ActionRegistry
-
- All Implemented Interfaces:
java.io.Serializable
public class ActionRegistry extends javax.swing.ActionMapA registry that retains all JPicEdt's actions in a map, supplies them on-demand through a String key, and knows how to update actions state using the currently installed MDIManager.- Since:
- jPicEdt 1.3
- Version:
- $Id: ActionRegistry.java,v 1.14 2006/06/17 22:34:47 reynal Exp $
- Author:
- Sylvain Reynal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionRegistry()construct an ActionRegistry with default Actions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(javax.swing.Action a)javax.swing.ActiongetAction(java.lang.String name)voidupdateActionState()update Action's enabled-state according to the current state of the installed MDIManager.
-
-
-
Method Detail
-
addAction
public void addAction(javax.swing.Action a)
- Parameters:
the- Action to add
-
getAction
public javax.swing.Action getAction(java.lang.String name)
- Returns:
- the action whose name maps "name"
-
updateActionState
public void updateActionState()
update Action's enabled-state according to the current state of the installed MDIManager. This may be called when a frame gets activated, or when a user action occured that implies updating action states, e.g. "Save", "Open", edit active board, ...
-
-