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 |
closeOnAction
contextMenu, 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, setEntity
add, 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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickHandler
addEventHandler, addEventHandler
addActionHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
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 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.