Method Summary |
|
native public void | addElement(Element element) Adds an Element object to the menu. |
native public void | addElement(String elemID) Adds an Ext.Element object to the menu. |
native public void | addItem(BaseItem item) Adds an
Item to the menu. |
native public void | addListener(MenuListener listener) Add a menu listener. |
native public void | addSeparator() Adds a separator bar to the menu. |
native public void | addText(String text) Creates a new
TextItem with the supplied text and adds it to the menu. |
protected JavaScriptObject | create(String id, JavaScriptObject config) |
native protected JavaScriptObject | create(JavaScriptObject menuConfig) |
native protected static JavaScriptObject | getComponent(String id) |
native protected Element | getElement(JavaScriptObject jsObj) |
public Element | getElement() |
native public BaseItem | getItem(String itemId) Gets an Item. |
native public BaseItem[] | getItems() |
public JavaScriptObject | getOrCreateJsObj() |
native public void | hide() Hides this menu. |
native public void | hide(boolean deep) Hides this menu and optionally all parent menus. |
native public void | insert(int index, BaseItem item) Inserts an e
Item to the menu at a specified index. |
native public boolean | isVisible() Returns true if the menu is currently displayed, else false. |
native public void | remove(BaseItem item) Removes an
Item from the menu and destroys the object. |
native public void | removeAll() |
public void | setAllowOtherMenus(boolean allowOtherMenus) True to allow multiple menus to be displayed at the same time (defaults to false). |
public void | setDefaultAlign(String anchorPosition) The default
com.gwtext.client.core.ExtElement.alignTo anchor position value for this menu relative to its
element of origin (defaults to "tl-bl"). |
public void | setId(String id) |
public void | setMinWidth(int minWidth) The minimum width of the menu in pixels (defaults to 120). |
public void | setShadow(boolean shadow) True for the default effect. |
public void | setShadow(String shadow) |
public void | setSubMenuAlign(String anchorPosition) The Ext.Element.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?"). |
native public void | show(String id) Displays this menu relative to another element. |
public void | showAt(int x, int y) Displays this menu at a specific xy position. |
public void | showAt(int[] xy) Displays this menu at a specific xy position. |
public void | showAt(int x, int y, Menu parentMenu) Displays this menu at a specific xy position. |