|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.ui.common.actions.EodispMenuManager
public class EodispMenuManager
EodispMenuManager handles the items in the menu bar, the tool bar, and the
context menus for this application. It does this through the use of
Action
s.
Items for all these types of bar's can be added or removed at runtime. The EodispMenuManager can be used to update the UI as appropriate.
Method Summary | ||
---|---|---|
void |
addMenuSelectedListener(MenuSelectedListener l)
|
|
|
getCtxMenu(java.lang.Class<T> type)
This constructs a context menu. |
|
static EodispMenuManager |
getInstance()
Returns the only INSTANCE of this class. |
|
javax.swing.JMenuBar |
getMenuBar()
Constructs the whole menu bar. |
|
javax.swing.JToolBar |
getToolBar()
Constructs the whole tool bar. |
|
void |
removeMenuSelectedListener(MenuSelectedListener l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EodispMenuManager getInstance()
public javax.swing.JMenuBar getMenuBar()
public javax.swing.JToolBar getToolBar()
public <T extends ActionSourceProvider> javax.swing.JPopupMenu getCtxMenu(java.lang.Class<T> type)
All dynamic entries are considered for inclusion into the context menu.
The application have to take care of the entries in the
EodispActionRegistry
, before constructing this menu.
public void addMenuSelectedListener(MenuSelectedListener l)
public void removeMenuSelectedListener(MenuSelectedListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |