|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GUI target independent menu. Submenus, actions, and separators appears in the order they are added into the menu.
Method Summary | |
void |
addAction(String label,
String icon,
Callback callback)
Adds an action to this menu. |
void |
addSeparator()
Adds a separator in this menu. |
void |
addSubMenu(String label,
String icon,
MenuView submenu)
Adds a sub-menu in this menu. |
String |
getPosition()
Gets the position of the menu bar (TOP||BOTTOM||LEFT||RIGHT). |
void |
setPosition(String position)
Sets the position of the menu bar (TOP||BOTTOM||LEFT||RIGHT). |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
close, getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
Method Detail |
public void addSubMenu(String label, String icon, MenuView submenu)
label
- the sub-menu's labelicon
- the sub-menu's iconsubmenu
- the submenupublic void addAction(String label, String icon, Callback callback)
label
- the sub-menu's labelicon
- the sub-menu's iconcallback
- the actual actionpublic void addSeparator()
public void setPosition(String position)
position
- the position. If null, use the default positionMenu
public String getPosition()
Menu
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |