|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.action.ActionMgr
public final class ActionMgr
The (singleton) action manager provides access to Jaspira actions. This can be used to globally activate or deactivate a single action that is to be shared between plugins (load, save, etc.).
| Method Summary | |
|---|---|
void |
addAction(JaspiraAction action)
Add a new Action to the manager. |
JaspiraAction |
getAction(java.lang.String name)
Returns the action with the given name or null if their is no such action. |
static ActionMgr |
getInstance()
Returns the singleton instance of the ActionMgr. |
static char |
getMnemonicChar(java.lang.String s)
Returns the mnemonic char of a string. |
static java.lang.String |
getStringWithoutMnemonicDelimiter(java.lang.String s)
Removes the mnemonic delimiter from a string. |
JaspiraAction |
removeAction(JaspiraAction action)
Removes a JaspiraAction from the manager. |
JaspiraAction |
removeAction(java.lang.String name)
Removes a JaspiraAction from the manager. |
void |
removeAllActions(java.util.Collection actions)
Removes all actions in the given collection to the manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ActionMgr getInstance()
public void addAction(JaspiraAction action)
action - the action to addpublic JaspiraAction removeAction(java.lang.String name)
name - The name of the action to remove
public JaspiraAction removeAction(JaspiraAction action)
action - The action to be removed
public void removeAllActions(java.util.Collection actions)
actions - A collection containing the actions to removepublic JaspiraAction getAction(java.lang.String name)
name - The name (id) of the action to retrieve
public static char getMnemonicChar(java.lang.String s)
s - The raw string
public static java.lang.String getStringWithoutMnemonicDelimiter(java.lang.String s)
s - The raw string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||