E - T - public class TextInputMenuItem<E,T> extends AbstractMenuItem<E,TextInputMenuItem<E,T>> implements HasInputHandlers<TextInputMenuItem<E,T>>
| Modifier and Type | Field and Description |
|---|---|
protected Getter<E,T> |
getter |
protected HTMLSpanElement |
labelSpan |
protected HTMLSpanElement |
menuSpan |
protected com.xalys.xgl.menu.TextInputMenuItem.TextInput |
textInput |
closeOnActioncontextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER| Constructor and Description |
|---|
TextInputMenuItem(E entity,
Getter<E,T> getter) |
TextInputMenuItem(HTMLLIElement element,
E entity,
Getter<E,T> getter) |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addClickHandler(ClickHandler<TextInputMenuItem<E,T>> clickHandler,
EventPhase eventPhase) |
HandlerRegistration |
addInputHandler(InputHandler<TextInputMenuItem<E,T>> inputHandler) |
void |
blur() |
boolean |
closeOnAction() |
void |
focus() |
Menu |
getMenu() |
String |
getText() |
boolean |
isChecked() |
void |
setChecked(boolean checked) |
TextInputMenuItem<E,T> |
setEnabled(boolean enabled) |
void |
setLabel(String label) |
addActionHandler, getEntity, setCloseOnAction, setEntityadd, 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, 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, waitaddInputHandleraddEventHandler, addEventHandleraddActionHandlercancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutationaddAttachHandleraddDetachHandleraddTransitionEndHandler, addTransitionEndHandleraddMouseDownHandler, addMouseDownHandleraddMouseMoveHandler, addMouseMoveHandleraddMouseOutHandler, addMouseOutHandleraddMouseOverHandler, addMouseOverHandleraddMouseUpHandler, addMouseUpHandleraddWheelHandler, addWheelHandleraddClickHandleraddDoubleClickHandler, addDoubleClickHandleraddContextMenuHandler, addContextMenuHandleraddTouchStartHandler, addTouchStartHandleraddTouchMoveHandler, addTouchMoveHandleraddTouchForceChangeHandler, addTouchForceChangeHandleraddTouchEndHandler, addTouchEndHandleraddTouchCancelHandler, addTouchCancelHandleraddTouchHoldHandleraddTapHandleraddDoubleTapHandleraddKeyDownHandler, addKeyDownHandleraddKeyUpHandler, addKeyUpHandleraddKeyPressHandler, addKeyPressHandleraddScrollHandler, addScrollHandleraddAnimationStartHandler, addAnimationStartHandleraddAnimationIterationHandler, addAnimationIterationHandleraddAnimationEndHandler, addAnimationEndHandleraddDoubleActionHandlerprotected com.xalys.xgl.menu.TextInputMenuItem.TextInput textInput
protected HTMLSpanElement menuSpan
protected HTMLSpanElement labelSpan
public TextInputMenuItem(HTMLLIElement element, E entity, Getter<E,T> getter)
public void setLabel(String label)
public boolean closeOnAction()
closeOnAction in class AbstractMenuItem<E,TextInputMenuItem<E,T>>public void setChecked(boolean checked)
public boolean isChecked()
public HandlerRegistration addClickHandler(ClickHandler<TextInputMenuItem<E,T>> clickHandler, EventPhase eventPhase)
addClickHandler in interface HasClickHandlers<TextInputMenuItem<E,T>>public TextInputMenuItem<E,T> setEnabled(boolean enabled)
setEnabled in class Widget<HTMLLIElement,TextInputMenuItem<E,T>>public HandlerRegistration addInputHandler(InputHandler<TextInputMenuItem<E,T>> inputHandler)
addInputHandler in interface HasInputHandlers<TextInputMenuItem<E,T>>public String getText()
public Menu getMenu()
getMenu in class AbstractMenuItem<E,TextInputMenuItem<E,T>>public void focus()
public void blur()
Copyright © 2018 Xalys. All rights reserved.