VALUE
- is the generic type of the value
.public abstract class NumberBox<VALUE extends Number> extends InputBox<VALUE> implements AttributeWriteMinimumValue<VALUE>, AttributeWriteMaximumValue<VALUE>
ValueBoxBase
that represents a
number or range input.com.google.gwt.user.client.ui.ValueBoxBase.TextAlignment
Modifier and Type | Field and Description |
---|---|
private VALUE |
max |
private VALUE |
min |
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
Constructor and Description |
---|
NumberBox(com.google.gwt.dom.client.InputElement element,
com.google.gwt.text.shared.Renderer<VALUE> renderer,
com.google.gwt.text.shared.Parser<VALUE> parser)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
VALUE |
getMaximumValue()
This method gets the maximum
value of this object. |
VALUE |
getMinimumValue()
This method gets the minimum
value of this object. |
void |
setMaximumValue(VALUE maximum)
This method sets the
maximum value of this object. |
void |
setMinimumValue(VALUE minimum)
This method sets the
minimum value of this object. |
getId, getInputElement, getMaximumTextLength, setDataList, setId, setMaximumTextLength
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValue, getValueOrThrow, isReadOnly, onBrowserEvent, onLoad, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue, setValue
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
private VALUE extends Number min
getMinimumValue()
private VALUE extends Number max
getMaximumValue()
public NumberBox(com.google.gwt.dom.client.InputElement element, com.google.gwt.text.shared.Renderer<VALUE> renderer, com.google.gwt.text.shared.Parser<VALUE> parser)
element
- is the InputElement
to wrap.renderer
- is the Renderer
used to format the value.parser
- is the Parser
used to parse the input as value.public VALUE getMinimumValue()
value
of this object. A legal value
has
to be greater or equal to this minimum
.getMinimumValue
in interface AttributeReadMinimumValue<VALUE extends Number>
value
or
null
if unbounded.public void setMinimumValue(VALUE minimum)
minimum value
of this object. value
. This should be avoided as it may
have undesired effects.setMinimumValue
in interface AttributeWriteMinimumValue<VALUE extends Number>
minimum
- is the new maximum value
to set. Use e.g. Integer.MAX_VALUE
to
unset.public VALUE getMaximumValue()
value
of this object. A legal value
has
to be less or equal to this maximum
.getMaximumValue
in interface AttributeReadMaximumValue<VALUE extends Number>
value
or
null
if unbounded.public void setMaximumValue(VALUE maximum)
maximum value
of this object. value
. This should be avoided as it may
have undesired effects.setMaximumValue
in interface AttributeWriteMaximumValue<VALUE extends Number>
maximum
- is the new maximum value
to set. Use e.g. Integer.MAX_VALUE
to
unset.Copyright © 2001–2016 mmm-Team. All rights reserved.