|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ActionMap
jpicedt.ui.action.ActionRegistry
public class ActionRegistry
A 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.
| Constructor Summary | |
|---|---|
ActionRegistry()
construct an ActionRegistry with default Actions |
|
ActionRegistry(ActionDispatcher dispatcher)
construct an ActionRegistry with default Actions |
|
ActionRegistry(ActionLocalizer localizer,
ActionDispatcher dispatcher)
construct an ActionRegistry with default Actions |
|
| Method Summary | |
|---|---|
void |
addAction(Action a)
|
Action |
getAction(String name)
|
void |
updateActionState()
Update Action's enabled-state according to the current state of the installed
MDIManager. |
| Methods inherited from class javax.swing.ActionMap |
|---|
allKeys, clear, get, getParent, keys, put, remove, setParent, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionRegistry()
public ActionRegistry(ActionDispatcher dispatcher)
public ActionRegistry(ActionLocalizer localizer,
ActionDispatcher dispatcher)
| Method Detail |
|---|
public void addAction(Action a)
a - the Action to addpublic Action getAction(String name)
public void updateActionState()
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, …
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||