Method Summary |
|
public void | add(MenuItem item) Adds a item to the menu. |
void | closeAllMenus() |
protected void | doAttachChildren() |
protected void | doDetachChildren() |
public MenuItem | findItem(Element target) Finds a item. |
public MenuItem | getItem(int index) Returns the item at the given index or null if the index is
out of range. |
public int | getItemCount() Returns the number of items contained in the menu. |
public List | getItems() Returns the menu's child items. |
public int | getMinWidth() Returns the minimum width. |
public MenuItem | getParentItem() Returns the menu's parent item, or null if the menu is a
root. |
public String | getSubMenuAlign() Returns the sub menu alignment. |
public void | hide() |
public int | indexOf(MenuItem item) Returns the index of the item, or -1 if not found. |
public void | insert(MenuItem item, int index) |
public void | onBrowserEvent(Event event) |
protected void | onMouseOut(Event event) |
protected void | onMouseOver(Event event) |
protected void | onRender() |
public void | remove(MenuItem item) |
public void | removeAll() Removes all menu items from this menu. |
public void | setMinWidth(int minWidth) Sets minimum width of the menu in pixels. |
public void | setSubMenuAlign(String subMenuAlign) Sets the
MyDOM.alignTo anchor position value to use for submenus of
this menu (defaults to "tl-tr?"). |
public void | show() |
public void | show(Element elem, String pos) Shows the menu. |
public void | show(int x, int y) Shows the menu at the specified location. |
public void | show(Widget widget) Shows the menu. |