|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.JEditActionContext<F,E>
public abstract class JEditActionContext<F extends JEditAbstractEditAction,E extends JEditActionSet<F>>
Manages a collection of action sets. There are two instances of this class in jEdit:
jEdit.getActionContext() - editor actions
VFSBrowser.getActionContext() - browser
actions
| Constructor Summary | |
|---|---|
JEditActionContext()
|
|
| Method Summary | |
|---|---|
void |
addActionSet(E actionSet)
Adds a new action set to the context. |
F |
getAction(java.lang.String name)
Returns the specified action. |
java.lang.String[] |
getActionNames()
Returns all registered action names. |
E |
getActionSetForAction(java.lang.String action)
Returns the action set that contains the specified action. |
E[] |
getActionSets()
Returns all registered action sets. |
abstract void |
invokeAction(java.util.EventObject evt,
F action)
Invokes the given action in response to a user-generated event. |
void |
removeActionSet(E actionSet)
Removes an action set from the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEditActionContext()
| Method Detail |
|---|
public abstract void invokeAction(java.util.EventObject evt,
F action)
evt - The eventaction - The actionpublic void addActionSet(E actionSet)
public void removeActionSet(E actionSet)
public E[] getActionSets()
public F getAction(java.lang.String name)
name - The action name
public E getActionSetForAction(java.lang.String action)
action - The action
public java.lang.String[] getActionNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||