|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWidget
com.vaadin.client.ui.menubar.MenuBar
@Deprecated public class MenuBar
A standard menu bar widget. A menu bar can contain any number of menu items,
each of which can either fire a com.google.gwt.user.client.Command or
open a cascaded menu bar.
| Constructor Summary | |
|---|---|
MenuBar()
Deprecated. Creates an empty horizontal menu bar. |
|
MenuBar(boolean vertical)
Deprecated. Creates an empty menu bar. |
|
| Method Summary | |
|---|---|
void |
addItem(MenuItem item)
Deprecated. Adds a menu item to the bar. |
MenuItem |
addItem(java.lang.String text,
boolean asHTML,
Command cmd)
Deprecated. Adds a menu item to the bar, that will fire the given command when it is selected. |
MenuItem |
addItem(java.lang.String text,
Command cmd)
Deprecated. Adds a menu item to the bar, that will fire the given command when it is selected. |
void |
clearItems()
Deprecated. Removes all menu items from this menu bar. |
protected void |
doItemAction(MenuItem item,
boolean fireCommand)
Deprecated. |
boolean |
getAutoOpen()
Deprecated. Gets whether this menu bar's child menus will open when the mouse is moved over it. |
MenuItem |
getFirstItem()
Deprecated. Gets the first item from the menu or null if no items. |
java.util.List<MenuItem> |
getItems()
Deprecated. Returns a list containing the MenuItem objects in the menu
bar. |
MenuItem |
getLastItem()
Deprecated. Gest the last item from the menu or null if no items. |
protected int |
getPreferredHeight()
Deprecated. Gets the preferred height of the menu. |
int |
getSelectedIndex()
Deprecated. Gets the index of the selected item. |
MenuItem |
getSelectedItem()
Deprecated. Returns the MenuItem that is currently selected
(highlighted) by the user. |
boolean |
isScrollActive()
Deprecated. Gets whether the scroll is activate for this menu. |
void |
onBrowserEvent(Event event)
Deprecated. |
protected void |
onDetach()
Deprecated. |
void |
onPopupClosed(PopupPanel sender,
boolean autoClosed)
Deprecated. |
void |
removeItem(MenuItem item)
Deprecated. Removes the specified menu item from the bar. |
void |
scrollSelectionIntoView()
Deprecated. Scroll the selected item into view. |
void |
selectItem(MenuItem item)
Deprecated. |
void |
setAutoOpen(boolean autoOpen)
Deprecated. Sets whether this menu bar's child menus will open when the mouse is moved over it. |
void |
setScrollEnabled(boolean enabled)
Deprecated. Sets the menu scroll enabled or disabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuBar()
public MenuBar(boolean vertical)
vertical - true to orient the menu bar vertically| Method Detail |
|---|
public void addItem(MenuItem item)
item - the item to be added
public MenuItem addItem(java.lang.String text,
boolean asHTML,
Command cmd)
text - the item's textasHTML - true to treat the specified text as htmlcmd - the command to be fired
MenuItem object created
public MenuItem addItem(java.lang.String text,
Command cmd)
text - the item's textcmd - the command to be fired
MenuItem object createdpublic void clearItems()
public boolean getAutoOpen()
true if child menus will auto-openpublic void onBrowserEvent(Event event)
public void onPopupClosed(PopupPanel sender,
boolean autoClosed)
public void removeItem(MenuItem item)
item - the item to be removedpublic void setAutoOpen(boolean autoOpen)
autoOpen - true to cause child menus to auto-openpublic java.util.List<MenuItem> getItems()
MenuItem objects in the menu
bar. If there are no items in the menu bar, then an empty
List object will be returned.
MenuItem objects in the menu
barpublic MenuItem getSelectedItem()
MenuItem that is currently selected
(highlighted) by the user. If none of the items in the menu are currently
selected, then null will be returned.
MenuItem that is currently selected, or
null if no items are currently selectedpublic MenuItem getFirstItem()
public MenuItem getLastItem()
public int getSelectedIndex()
protected void onDetach()
protected void doItemAction(MenuItem item,
boolean fireCommand)
public void selectItem(MenuItem item)
public void scrollSelectionIntoView()
public void setScrollEnabled(boolean enabled)
enabled - the enabled state of the scroll.public boolean isScrollActive()
protected int getPreferredHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||