public static class VMenuBar.CustomMenuItem
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.user.client.ui.HasHTML
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkable |
protected boolean |
checked |
protected com.google.gwt.user.client.Command |
command |
protected String |
description |
protected boolean |
enabled |
protected String |
html |
protected boolean |
isSeparator |
protected VMenuBar |
parentMenu |
protected boolean |
selected |
protected VMenuBar |
subMenu |
| Constructor and Description |
|---|
CustomMenuItem()
Default menu item
Widget constructor for GWT.create(). |
CustomMenuItem(String html,
com.google.gwt.user.client.Command cmd)
Deprecated.
use the default constructor and
setHTML(String)
and setCommand(Command) instead |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.Command |
getCommand() |
String |
getHTML() |
VMenuBar |
getParentMenu() |
VMenuBar |
getSubMenu() |
String |
getText() |
TooltipInfo |
getTooltip() |
boolean |
isCheckable() |
boolean |
isChecked() |
boolean |
isEnabled() |
boolean |
isSelectable()
Checks if the item can be selected.
|
boolean |
isSeparator() |
void |
setCheckable(boolean checkable) |
void |
setChecked(boolean checked) |
void |
setCommand(com.google.gwt.user.client.Command command) |
void |
setEnabled(boolean enabled) |
void |
setHTML(String html) |
void |
setParentMenu(VMenuBar parentMenu) |
void |
setSelected(boolean selected) |
void |
setStyleName(String style) |
void |
setSubMenu(VMenuBar subMenu) |
void |
setText(String text) |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client) |
protected void |
updateStyleNames() |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringprotected String html
protected com.google.gwt.user.client.Command command
protected VMenuBar subMenu
protected VMenuBar parentMenu
protected boolean enabled
protected boolean isSeparator
protected boolean checkable
protected boolean checked
protected boolean selected
protected String description
public CustomMenuItem()
Widget constructor for GWT.create().
Use setHTML(String) and setCommand(Command) after
constructing a menu item.@Deprecated public CustomMenuItem(String html, com.google.gwt.user.client.Command cmd)
setHTML(String)
and setCommand(Command) insteadWidget.html - cmd - public void setStyleName(String style)
setStyleName in class com.google.gwt.user.client.ui.UIObjectpublic void setSelected(boolean selected)
public void setChecked(boolean checked)
public boolean isChecked()
public void setCheckable(boolean checkable)
public boolean isCheckable()
public void setSubMenu(VMenuBar subMenu)
public VMenuBar getSubMenu()
public void setParentMenu(VMenuBar parentMenu)
protected void updateStyleNames()
public VMenuBar getParentMenu()
public void setCommand(com.google.gwt.user.client.Command command)
public com.google.gwt.user.client.Command getCommand()
public String getHTML()
getHTML in interface com.google.gwt.user.client.ui.HasHTMLpublic void setHTML(String html)
setHTML in interface com.google.gwt.user.client.ui.HasHTMLpublic String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextpublic void setEnabled(boolean enabled)
public boolean isEnabled()
public boolean isSeparator()
public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
public TooltipInfo getTooltip()
public boolean isSelectable()
Copyright © 2016 Vaadin Ltd. All rights reserved.