E
- @JsType(name="xgl") public class MenuItem<E> extends AbstractMenuItem<E,MenuItem<E>>
Modifier and Type | Field and Description |
---|---|
protected HTMLSpanElement |
iconSpan |
protected String |
label |
protected HTMLSpanElement |
labelSpan |
protected HTMLSpanElement |
menuSpan |
closeOnAction
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
MenuItem() |
MenuItem(String label) |
MenuItem(String label,
HTMLLIElement element) |
Modifier and Type | Method and Description |
---|---|
MaterialIcon |
getIcon() |
String |
getLabel() |
Menu |
getMenu() |
void |
setIcon(MaterialIcon icon) |
void |
setLabel(String label) |
void |
setMenu(Menu menu) |
addActionHandler, closeOnAction, getEntity, setCloseOnAction, setEntity
add, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionHandler
addEventHandler, addEventHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addDoubleActionHandler
protected HTMLSpanElement iconSpan
protected HTMLSpanElement labelSpan
protected HTMLSpanElement menuSpan
protected String label
@JsIgnore public MenuItem()
@JsIgnore public MenuItem(String label)
@JsConstructor public MenuItem(String label, @JsOptional HTMLLIElement element)
public String getLabel()
public void setLabel(String label)
public MaterialIcon getIcon()
public void setIcon(MaterialIcon icon)
public Menu getMenu()
getMenu
in class AbstractMenuItem<E,MenuItem<E>>
public void setMenu(Menu menu)
Copyright © 2018 Xalys. All rights reserved.