public abstract class ValueField<H extends HTMLElement<H>,W extends ValueField<H,W,V>,V> extends Field<H,W,V> implements HasChangeHandlers<W>, HasInputHandlers<W>, HasValueInputHandlers<W,V>
Modifier and Type | Field and Description |
---|---|
protected Autocorrect |
autocorrect |
protected Autofill |
autofill |
protected Renderer<V> |
editRenderer |
protected TextAlign |
editTextAlign |
protected Parser<V> |
parser |
protected String |
placeholder |
protected Renderer<V> |
renderer |
protected boolean |
required |
protected TextAlign |
textAlign |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
ValueField(H element) |
addFieldChangeHandler, addValidator, fireFieldChangeEvent, getValidators, getValue, isReadOnly, isValid, removeValidator, reset, setReadOnly, setValue, validate, validate
focusNext, focusPrevious
add, addActionHandler, 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
addChangeHandler, addChangeHandler
addInputHandler, addInputHandler
addEventHandler, addEventHandler
blur, click, focus, getElement
addBlurHandler, addBlurHandler
addFocusHandler, addFocusHandler
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
addActionHandler
addDoubleActionHandler
protected String placeholder
protected boolean required
protected TextAlign textAlign
protected TextAlign editTextAlign
protected Autofill autofill
protected Autocorrect autocorrect
public ValueField(H element)
element
- public W setEditRenderer(Renderer<V> editRenderer)
renderer
- the renderer to setpublic W setValue(V value)
setValue
in class Field<H extends HTMLElement<H>,W extends ValueField<H,W,V>,V>
Field.setValue(java.lang.Object)
protected abstract void renderValue(V value)
value
- protected abstract void renderEditValue(V value)
value
- protected abstract V parseValue()
value
- public HandlerRegistration addValueInputHandler(ValueInputHandler<W,V> valueInputHandler)
addValueInputHandler
in interface HasValueInputHandlers<W extends ValueField<H,W,V>,V>
HasValueInputHandlers.addValueInputHandler(com.xalys.xgl.events.forms.ValueInputHandler)
public boolean allowNullRender()
public W setAllowNullRender(boolean allowNullRender)
public String getPlaceHolder()
placeholder
- public abstract W setPlaceHolder(String placeholder)
placeholder
- public Autofill getAutofill()
public Autocorrect getAutocorrect()
public abstract W setAutocorrect(Autocorrect autocorrect)
autofill
- public final boolean isRequired()
public abstract W setRequired(boolean required)
required
- public W setAllowBlank(boolean allowBlank)
allowBlank
- protected abstract void fireValueInputEvent()
public abstract boolean isEditing()
public abstract W edit()
public abstract String getTextValue()
Copyright © 2018 Xalys. All rights reserved.