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 |
closeOnAction
contextMenu, 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, 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, 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
addInputHandler
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
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 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.