E
- R
- public abstract class AbstractMenuItem<E,R extends AbstractMenuItem<E,R>> extends Widget<HTMLLIElement,R> implements HasActionHandlers<R>
Modifier and Type | Field and Description |
---|---|
protected boolean |
closeOnAction |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
AbstractMenuItem(HTMLLIElement element) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addActionHandler(ActionHandler<R> actionHandler,
EventPhase eventPhase) |
boolean |
closeOnAction() |
E |
getEntity() |
abstract Menu |
getMenu() |
void |
setCloseOnAction(boolean closeOnAction) |
void |
setEntity(E entity) |
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
public AbstractMenuItem(HTMLLIElement element)
public E getEntity()
public void setEntity(E entity)
entity
- public boolean closeOnAction()
public void setCloseOnAction(boolean closeOnAction)
closeOnAction
- the closeMenuOnClick to setpublic abstract Menu getMenu()
public HandlerRegistration addActionHandler(ActionHandler<R> actionHandler, EventPhase eventPhase)
addActionHandler
in interface HasActionHandlers<R extends AbstractMenuItem<E,R>>
addActionHandler
in class Widget<HTMLLIElement,R extends AbstractMenuItem<E,R>>
actionHandler
- eventPhase
- HasActionHandlers.addActionHandler(com.xalys.xgl.events.ActionHandler,
com.xalys.xgl.events.EventPhase)
Copyright © 2018 Xalys. All rights reserved.