|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.ui.common.actions.EodispActionRegistry
public class EodispActionRegistry
The EodispActionRegistry is used to register Action
's.
These actions can be used for menu bar, too bar, and context menu entries.
The purpose of this class is to have a central place where all actions are
registered and from where actions can be retrieved for further processing.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
Log4J logger for this class |
Method Summary | ||
---|---|---|
void |
addActionChangedListener(EodispActionListener l)
|
|
|
clearActions(java.lang.Class<T> registrar)
This clears all actions registered by a specific view. |
|
|
disableActions()
Disables all actions which are not always visible. |
|
|
getContextMenuActions(java.lang.Class<T> type)
Returns a list of all actions registered in this registry which should be displayed in a tool bar. |
|
static EodispActionRegistry |
getInstance()
Return the only INSTANCE of this class (singleton). |
|
java.util.List<EodispAction> |
getMenuBarActions()
Returns a list of all actions registered in this registry which should be displayed in a menu bar. |
|
java.util.List<EodispAction> |
getToolBarActions()
Returns a list of all actions registered in this registry which should be displayed in a tool bar. |
|
void |
registerAction(EodispAction source)
Adds an action to the list of known actions for this application. |
|
|
registerAction(EodispAction source,
java.lang.Class<T> registrar)
Adds an action to the list of known actions for this application. |
|
void |
registerActions(java.util.List<EodispAction> actions)
This can be used to register a list of actions instead of only one. |
|
|
registerActions(java.util.List<EodispAction> actions,
java.lang.Class<T> registrar)
This can be used to register a list of actions instead of only one. |
|
void |
removeActionChangedListener(EodispActionListener l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
Method Detail |
---|
public static EodispActionRegistry getInstance()
public void registerAction(EodispAction source)
source
- The action to be added to the list of actions for this
application.public <T extends ActionSourceProvider> void registerAction(EodispAction source, java.lang.Class<T> registrar)
source
- The action to be added to the list of actions for this
application.registrar
- The class which is responsible for registering this event.public void registerActions(java.util.List<EodispAction> actions)
actions
- A list including of actions of type EodispAction
.public <T extends ActionSourceProvider> void registerActions(java.util.List<EodispAction> actions, java.lang.Class<T> registrar)
actions
- A list including of actions of type EodispAction
.registrar
- The class which is responsible for registering this event.public <T extends ActionSourceProvider> void clearActions(java.lang.Class<T> registrar)
registrar
- The class that registered the actions. If null is given, all
actions are removed.onlyDanamic
- If set to true, only actions that are dynamic are removed from
the registry, otherwise all actions are removed from the
registry.public <T extends ActionSourceProvider> void disableActions()
public java.util.List<EodispAction> getMenuBarActions()
public java.util.List<EodispAction> getToolBarActions()
public <T extends ActionSourceProvider> java.util.List<EodispAction> getContextMenuActions(java.lang.Class<T> type)
type
- The type for which the context menu actions should be
returned. If this parameter is null, the context menu actions
for all types are returned.
public void addActionChangedListener(EodispActionListener l)
public void removeActionChangedListener(EodispActionListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |