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, textAlign
contextMenu, 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, setTextAlign
addValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRenderer
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
protected 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.