|
||||||||||
| 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.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
org.cafesip.gwtcomp.client.ui.PopupMenu
public class PopupMenu
A popup menu that is used to popup and present a set of options to the users. The menu can be popped up or down programatically. Applications can add widgets as menu items. Therefore, many items can contain text lables, HTML segments, user input fields, etc. In addition, the applications can also add cascaded child menus.
Examples:
CSS Style Rules:
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
com.google.gwt.user.client.ui.PopupPanel.PositionCallback |
| 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 | |
|---|---|
PopupMenu()
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
addMenuItem(com.google.gwt.user.client.ui.Widget widget)
Add a child menu item. |
void |
addMenuItem(com.google.gwt.user.client.ui.Widget widget,
PopupMenu cascadedMenu)
Adds a child menu item that is a cascaded menu. |
void |
addSeparator()
Add a separator item. |
static PopupMenu |
getRootMenu(PopupMenu menu)
Gets the root menu for a given popup menu. |
void |
hideAll()
Hides the popup menu. |
void |
removeMenuItem(int index)
Removes a child menu at the given index. |
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, hide, isAnimationEnabled, onDetach, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setHeight, setPopupPosition, setPopupPositionAndShow, setTitle, setVisible, setWidget, setWidth, show |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, getWidget, iterator, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PopupMenu()
| Method Detail |
|---|
public void addMenuItem(com.google.gwt.user.client.ui.Widget widget,
PopupMenu cascadedMenu)
widget - normally a HTML or Label object is used to print the menu item
name.cascadedMenu - the popup menu that is popped up when the user mouses over the
widget.public void addMenuItem(com.google.gwt.user.client.ui.Widget widget)
widget - normally a HTML segment or a text lable is passed but other
input widgets can be passed as well.public void removeMenuItem(int index)
index - indexpublic void addSeparator()
public void hideAll()
public static PopupMenu getRootMenu(PopupMenu menu)
menu - a given popup menu object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||