|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.display.ActionManager
The ActionManager manages what actions are registered.
Method Summary | |
AbstractAction |
getAction(ActionDisplayDescriptor descriptor)
Gets the action associated with the given descriptor. |
AbstractAction |
getAction(String type,
String name)
Gets the action for the given action type and name. |
ActionDisplayDescriptor |
getDefaultDescriptor(String displayType,
String actionType,
String actionName)
Gets the default registered descriptor for the given display type, action name, and action type. |
List |
getRegisteredNamesForType(String type)
Gets the names of actions registered for the given type. |
IRenderer |
getRenderer(String displayType,
String actionType,
String actionName)
Gets the renderer for the given display type, action name, and action type. |
void |
registerAction(String type,
String name,
AbstractAction action)
Puts the action for the given action type and name. |
void |
registerDefaultDescriptor(String displayType,
String actionType,
String actionName,
ActionDisplayDescriptor descriptor)
Puts the action for the given action type and name. |
void |
registerRenderer(String displayType,
String actionType,
String actionName,
IRenderer renderer)
Puts the action for the given action type and name. |
static void |
setSingleton(ActionManager actionMgr)
Allows a subclass of the ActionManager to be set as the singleton instance. |
static ActionManager |
singleton()
Gets the singleton instance of the ActionManager |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public AbstractAction getAction(String type, String name)
public AbstractAction getAction(ActionDisplayDescriptor descriptor)
descriptor
- public ActionDisplayDescriptor getDefaultDescriptor(String displayType, String actionType, String actionName)
public List getRegisteredNamesForType(String type)
type
- public IRenderer getRenderer(String displayType, String actionType, String actionName)
public void registerAction(String type, String name, AbstractAction action)
public void registerDefaultDescriptor(String displayType, String actionType, String actionName, ActionDisplayDescriptor descriptor)
public void registerRenderer(String displayType, String actionType, String actionName, IRenderer renderer)
public static void setSingleton(ActionManager actionMgr)
actionMgr
- new singleton instancepublic static ActionManager singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |