|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectee.quest.widget.context.MenuContext
public class MenuContext
Menu context for managing menus in form. Context is initialized in BaseShell by default.
| Constructor Summary | |
|---|---|
MenuContext()
|
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Menu |
addMenu(org.eclipse.swt.widgets.Control control,
String name)
Adds menu to control and includes it to menuContext. |
org.eclipse.swt.widgets.Menu |
addMenubar(org.eclipse.swt.widgets.Shell shell)
Adds menubar to specified shell. |
org.eclipse.swt.widgets.MenuItem |
addMenuItem(String menu,
String name,
String label,
Object handler)
Adds item to menu. |
org.eclipse.swt.widgets.MenuItem |
addMenuToMenubar(String name,
String label)
Adds menu to menubar (menubar must exsist or exception will occur). |
org.eclipse.swt.widgets.Menu |
addSubmenu(String menuItem,
String name)
Adds submenu to the the context. |
org.eclipse.swt.widgets.Menu |
getMenu(String menu)
Gets the menu out of context. |
org.eclipse.swt.widgets.Menu |
getMenubar()
Gets menubar out from context. |
org.eclipse.swt.widgets.MenuItem |
getMenuItem(String menuItem)
Gets the menu item out of the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuContext()
| Method Detail |
|---|
public org.eclipse.swt.widgets.Menu addMenu(org.eclipse.swt.widgets.Control control,
String name)
control - name -
public org.eclipse.swt.widgets.MenuItem addMenuToMenubar(String name,
String label)
name - label -
public org.eclipse.swt.widgets.MenuItem addMenuItem(String menu,
String name,
String label,
Object handler)
menu - -
name of the menuname - -
name of the itemlabel - -
item texthandler - -
event handler class (can be null).
public org.eclipse.swt.widgets.Menu getMenu(String menu)
menu - -
name of the menu
public org.eclipse.swt.widgets.Menu addSubmenu(String menuItem,
String name)
menuItem - -
item to add submenuname - -
name of the menu
public org.eclipse.swt.widgets.MenuItem getMenuItem(String menuItem)
menuItem - -
name of the menu item
public org.eclipse.swt.widgets.Menu addMenubar(org.eclipse.swt.widgets.Shell shell)
shell -
public org.eclipse.swt.widgets.Menu getMenubar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||