|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.gui.swing.ActionsContext
public final class ActionsContext
This class holds the Actions context, that enables to resolve the Swing Action given the action name. It basically consists of an (ordered) list of objects having @Action annotated methods.
Method Summary | |
---|---|
void |
add(Object instanceWithActionMappings)
Add an instances to search for annotated methods. |
static ActionsContext |
create(Object... instancesWithActionMappings)
Create an ActionsContext. |
static ActionsContext |
extend(ActionsContext parentContext,
Object... instancesWithActionMappings)
Extend an ActionsContext. |
static ActionsContext |
extendDefault(Object... instancesWithActionMappings)
Extend the ActionsContext of GUIApplication . |
Action |
getAction(Object object,
String actionName)
Returns the action object for a specific object and action name. |
Action |
getAction(String actionName)
Returns the first action object found for an action name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ActionsContext extend(ActionsContext parentContext, Object... instancesWithActionMappings)
parentContext
- the parent ActionsContext
to extend.instancesWithActionMappings
- an array containing all instances to search for annotated methods
public static ActionsContext extendDefault(Object... instancesWithActionMappings)
GUIApplication
.
instancesWithActionMappings
- an array containing all instances to search for annotated methods
public static ActionsContext create(Object... instancesWithActionMappings)
instancesWithActionMappings
- an array containing all instances to search for annotated methods
public void add(Object instanceWithActionMappings)
instanceWithActionMappings
- an instances to search for annotated methodspublic Action getAction(String actionName)
actionName
- the action name as String
public Action getAction(Object object, String actionName)
object
- the object containing actionsactionName
- the action name as String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |