|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.exoplatform.gwtframework.ui.client.menu.MenuBar
public class MenuBar
Created by The eXo Platform SAS . MenuBar is visual component, represents top menu.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
MenuBar()
Create MenuBar. |
|
| Method Summary | |
|---|---|
MenuItem |
addItem(java.lang.String title)
Create and add new item in menu. |
MenuItem |
addItem(java.lang.String title,
com.google.gwt.user.client.Command command)
Create and add new item in menu. |
MenuItem |
addItem(java.lang.String icon,
java.lang.String title)
Create and add new item in menu. |
MenuItem |
addItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Command command)
Create and add new item in menu. |
java.util.List<MenuItem> |
getItems()
Get list of items. |
void |
onCloseMenu()
Handle closing of all popup windows. |
void |
onMenuItemSelected(MenuItem menuItem)
Handle selection of Menu Item. |
void |
openPopupMenu(MenuBarItem item)
Open Popup Menu. |
java.lang.String |
toString()
|
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MenuBar()
| Method Detail |
|---|
public MenuItem addItem(java.lang.String title)
title - title of new item
public MenuItem addItem(java.lang.String title,
com.google.gwt.user.client.Command command)
title - title of new itemcommand - command, which will be executed when menu item will be selected
public MenuItem addItem(java.lang.String icon,
java.lang.String title)
icon - item's icon which must be represented as HTML image. Image must be prepared like "title - title of new item
public MenuItem addItem(java.lang.String icon,
java.lang.String title,
com.google.gwt.user.client.Command command)
icon - item's icon which must be represented as HTML image. Image must be prepared like "title - title of new itemcommand - command, which will be executed when menu item will be selected
public java.util.List<MenuItem> getItems()
public void onCloseMenu()
onCloseMenu in interface CloseMenuHandlerorg.exoplatform.gwtframework.ui.client.CloseMenuHandler.menu.nn.impl.CloseMenuCallback#onCloseMenu()public void onMenuItemSelected(MenuItem menuItem)
onMenuItemSelected in interface ItemSelectedHandlermenuItem - selected MenuItemorg.exoplatform.gwtframework.ui.client.ItemSelectedHandler.menu.nn.impl.ItemSelectedCallback#onMenuItemSelected(org.exoplatform.gwtframework.ui.client.extension.menu.nn.api.MenuItem)public void openPopupMenu(MenuBarItem item)
item - - popup menu item.public java.lang.String toString()
toString in class com.google.gwt.user.client.ui.UIObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||