E - T - public class CheckBoxMenuItem<E,T> extends AbstractMenuItem<E,CheckBoxMenuItem<E,T>> implements HasClickHandlers<CheckBoxMenuItem<E,T>>
| Modifier and Type | Field and Description | 
|---|---|
protected com.xalys.xgl.menu.CheckBoxMenuItem.CheckBox | 
checkbox  | 
protected Getter<E,T> | 
getter  | 
protected HTMLLabelElement | 
labelSpan  | 
protected HTMLSpanElement | 
menuSpan  | 
closeOnActioncontextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER| Constructor and Description | 
|---|
CheckBoxMenuItem(E entity,
                Getter<E,T> getter)  | 
CheckBoxMenuItem(HTMLLIElement element,
                E entity,
                Getter<E,T> getter)  | 
| Modifier and Type | Method and Description | 
|---|---|
HandlerRegistration | 
addClickHandler(ClickHandler<CheckBoxMenuItem<E,T>> clickHandler,
               EventPhase eventPhase)  | 
HandlerRegistration | 
addTapHandler(TapHandler<CheckBoxMenuItem<E,T>> tapHandler,
             EventPhase eventPhase)  | 
Menu | 
getMenu()  | 
boolean | 
isChecked()  | 
void | 
setChecked(boolean checked)  | 
CheckBoxMenuItem<E,T> | 
setEnabled(boolean enabled)  | 
void | 
setMenu(Menu menu)  | 
addActionHandler, closeOnAction, getEntity, setCloseOnAction, setEntityadd, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, 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, 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, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickHandleraddEventHandler, addEventHandleraddActionHandlercancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutationaddAttachHandleraddDetachHandleraddTransitionEndHandler, addTransitionEndHandleraddMouseDownHandler, addMouseDownHandleraddMouseMoveHandler, addMouseMoveHandleraddMouseOutHandler, addMouseOutHandleraddMouseOverHandler, addMouseOverHandleraddMouseUpHandler, addMouseUpHandleraddWheelHandler, addWheelHandleraddDoubleClickHandler, addDoubleClickHandleraddContextMenuHandler, addContextMenuHandleraddTouchStartHandler, addTouchStartHandleraddTouchMoveHandler, addTouchMoveHandleraddTouchForceChangeHandler, addTouchForceChangeHandleraddTouchEndHandler, addTouchEndHandleraddTouchCancelHandler, addTouchCancelHandleraddTouchHoldHandleraddTapHandleraddDoubleTapHandleraddKeyDownHandler, addKeyDownHandleraddKeyUpHandler, addKeyUpHandleraddKeyPressHandler, addKeyPressHandleraddScrollHandler, addScrollHandleraddAnimationStartHandler, addAnimationStartHandleraddAnimationIterationHandler, addAnimationIterationHandleraddAnimationEndHandler, addAnimationEndHandleraddDoubleActionHandlerprotected com.xalys.xgl.menu.CheckBoxMenuItem.CheckBox checkbox
protected HTMLLabelElement labelSpan
protected HTMLSpanElement menuSpan
public CheckBoxMenuItem(HTMLLIElement element, E entity, Getter<E,T> getter)
public void setChecked(boolean checked)
public boolean isChecked()
public HandlerRegistration addClickHandler(ClickHandler<CheckBoxMenuItem<E,T>> clickHandler, EventPhase eventPhase)
addClickHandler in interface HasClickHandlers<CheckBoxMenuItem<E,T>>public HandlerRegistration addTapHandler(TapHandler<CheckBoxMenuItem<E,T>> tapHandler, EventPhase eventPhase)
addTapHandler in interface HasTapHandlers<CheckBoxMenuItem<E,T>>addTapHandler in class Widget<HTMLLIElement,CheckBoxMenuItem<E,T>>public CheckBoxMenuItem<E,T> setEnabled(boolean enabled)
setEnabled in class Widget<HTMLLIElement,CheckBoxMenuItem<E,T>>public Menu getMenu()
getMenu in class AbstractMenuItem<E,CheckBoxMenuItem<E,T>>public void setMenu(Menu menu)
Copyright © 2018 Xalys. All rights reserved.