public abstract class NumberField<W extends NumberField<W,V>,V extends Number & Comparable<V>> extends AbstractTextField<W,V>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowNumpadPlusMinusIncrement |
protected V |
max |
protected V |
min |
protected V |
step |
autocorrect, autofill, editRenderer, editTextAlign, parser, placeholder, renderer, required, textAligncontextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER| Constructor and Description |
|---|
NumberField(HTMLInputElement element) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
add(boolean increment,
boolean hasShiftKey,
boolean hasAltKey) |
V |
getMax() |
V |
getMin() |
V |
getStep() |
boolean |
isAllowNumpadPlusMinusIncrement() |
W |
setAllowNumpadPlusMinusIncrement(boolean allowNumpadPlusMinusIncrement) |
protected void |
setHTMLFieldType()
(non-Javadoc)
|
W |
setMax(V max) |
W |
setMin(V min) |
W |
setStep(V step) |
W |
setValue(V value) |
edit, fireValueInputEvent, getTextValue, isEditing, parseValue, renderEditValue, renderValue, reset, setAutocapitalize, setAutocorrect, setAutofill, setEditTextAlign, setEnabled, setPlaceHolder, setReadOnly, setRequired, setTextAlignaddValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRendereraddFieldChangeHandler, addValidator, fireFieldChangeEvent, getValidators, getValue, isReadOnly, isValid, removeValidator, setValue, validate, validatefocusNext, focusPreviousadd, 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, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeHandler, addChangeHandleraddInputHandler, addInputHandleraddEventHandler, addEventHandlerblur, click, focus, getElementaddBlurHandler, addBlurHandleraddFocusHandler, addFocusHandlercancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutationaddAttachHandleraddDetachHandleraddTransitionEndHandler, addTransitionEndHandleraddMouseDownHandler, addMouseDownHandleraddMouseMoveHandler, addMouseMoveHandleraddMouseOutHandler, addMouseOutHandleraddMouseOverHandler, addMouseOverHandleraddMouseUpHandler, addMouseUpHandleraddWheelHandler, addWheelHandleraddClickHandler, addClickHandleraddDoubleClickHandler, addDoubleClickHandleraddContextMenuHandler, addContextMenuHandleraddTouchStartHandler, addTouchStartHandleraddTouchMoveHandler, addTouchMoveHandleraddTouchForceChangeHandler, addTouchForceChangeHandleraddTouchEndHandler, addTouchEndHandleraddTouchCancelHandler, addTouchCancelHandleraddTouchHoldHandleraddTapHandleraddDoubleTapHandleraddKeyDownHandler, addKeyDownHandleraddKeyUpHandler, addKeyUpHandleraddKeyPressHandler, addKeyPressHandleraddScrollHandler, addScrollHandleraddAnimationStartHandler, addAnimationStartHandleraddAnimationIterationHandler, addAnimationIterationHandleraddAnimationEndHandler, addAnimationEndHandleraddActionHandleraddDoubleActionHandlerprotected boolean allowNumpadPlusMinusIncrement
protected V extends Number & Comparable<V> min
protected V extends Number & Comparable<V> max
protected V extends Number & Comparable<V> step
public NumberField(HTMLInputElement element)
element - protected void setHTMLFieldType()
setHTMLFieldType in class AbstractTextField<W extends NumberField<W,V>,V extends Number & Comparable<V>>AbstractTextField.setHTMLFieldType()public V getMin()
public V getMax()
public V getStep()
public W setValue(V value)
setValue in class ValueField<HTMLInputElement,W extends NumberField<W,V>,V extends Number & Comparable<V>>value - ValueField.setValue(java.lang.Object)protected abstract void add(boolean increment,
boolean hasShiftKey,
boolean hasAltKey)
public W setAllowNumpadPlusMinusIncrement(boolean allowNumpadPlusMinusIncrement)
allowNumpadPlusMinusIncrement - the allowNumpadPlusMinusIncrement to setpublic boolean isAllowNumpadPlusMinusIncrement()
Copyright © 2018 Xalys. All rights reserved.