public abstract class AbstractTextField<W extends AbstractTextField<W,V>,V> extends ValueField<HTMLInputElement,W,V>
autocorrect, autofill, editRenderer, editTextAlign, parser, placeholder, renderer, required, textAlign
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
AbstractTextField(HTMLInputElement element) |
Modifier and Type | Method and Description |
---|---|
W |
edit() |
protected void |
fireValueInputEvent() |
String |
getTextValue() |
boolean |
isEditing() |
protected V |
parseValue() |
protected void |
renderEditValue(V value) |
protected void |
renderValue(V value) |
W |
reset() |
W |
setAutocapitalize(Autocapitalize autocapitalize) |
W |
setAutocorrect(Autocorrect autocorrect) |
W |
setAutofill(Autofill autofill) |
W |
setEditTextAlign(TextAlign editTextAlign) |
W |
setEnabled(boolean enabled) |
protected abstract void |
setHTMLFieldType() |
W |
setPlaceHolder(String placeholder) |
W |
setReadOnly(boolean readOnly)
Sets the read only status
|
W |
setRequired(boolean required) |
W |
setTextAlign(TextAlign textAlign)
Set the text alignment.
|
addValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRenderer, setValue
addFieldChangeHandler, addValidator, fireFieldChangeEvent, getValidators, getValue, isReadOnly, isValid, removeValidator, 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, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, 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
public AbstractTextField(HTMLInputElement element)
element
- protected void renderValue(V value)
renderValue
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
value
- protected void renderEditValue(V value)
renderEditValue
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
value
- public W setPlaceHolder(String placeholder)
setPlaceHolder
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
protected V parseValue()
parseValue
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
com.xalys.xgl.forms.Field#parseValue()
protected abstract void setHTMLFieldType()
public W reset()
reset
in class Field<HTMLInputElement,W extends AbstractTextField<W,V>,V>
public W setRequired(boolean required)
setRequired
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
required
- public W setReadOnly(boolean readOnly)
setReadOnly
in class Field<HTMLInputElement,W extends AbstractTextField<W,V>,V>
readOnly
- the read only status to setpublic W setEnabled(boolean enabled)
setEnabled
in class Widget<HTMLInputElement,W extends AbstractTextField<W,V>>
public W setTextAlign(TextAlign textAlign)
Widget
#clearTextAlign()
, the theme's text alignment will be used.setTextAlign
in class Widget<HTMLInputElement,W extends AbstractTextField<W,V>>
textAlign
- the alignment used for the text of this widget. If the alignment
is null, revert to the theme's text alignment.public boolean isEditing()
isEditing
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
public W edit()
edit
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
@WillMutate public W setAutofill(Autofill autofill)
setAutofill
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
@WillMutate public W setAutocorrect(Autocorrect autocorrect)
setAutocorrect
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
@WillMutate public W setAutocapitalize(Autocapitalize autocapitalize)
protected void fireValueInputEvent()
fireValueInputEvent
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
public String getTextValue()
getTextValue
in class ValueField<HTMLInputElement,W extends AbstractTextField<W,V>,V>
Copyright © 2018 Xalys. All rights reserved.