public abstract class MaterialNumberBox<T> extends MaterialValueBox<T>
MaterialIntegerBox and
MaterialDoubleBox.MaterialValueBox.MaterialValueBoxEditor<V>MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcom.google.gwt.i18n.client.HasDirection.Directioncom.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.PathvalueBoxBase$thisTYPE| Modifier | Constructor and Description |
|---|---|
protected |
MaterialNumberBox() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMax() |
String |
getMin() |
String |
getStep() |
T |
getValue() |
Double |
getValueAsNumber()
Returns the value parsed natively by the browser.
|
protected abstract T |
parseNumber(double number) |
void |
setMax(String max) |
void |
setMin(String min) |
void |
setStep(String step)
Set step attribute to input element.
|
addBlurHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDragOverHandler, addDragStartHandler, addDropActivateHandler, addDropDeactivateHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, addValueBox, addValueChangeHandler, asEditor, asValueBoxBase, clear, clearErrorOrSuccess, getActiveMixin, getCounterMixin, getDirection, getDirectionEstimator, getErrorLabel, getErrorMixin, getFocusableMixin, getIcon, getIconColor, getLabel, getLength, getName, getPlaceholder, getReadOnlyMixin, getSelectedText, getSelectionLength, getTabIndex, getText, getType, getValueBoxBase, isActive, isEnabled, isIconPrefix, isReadOnly, isToggleReadOnly, onLoad, removeErrorModifiers, setAccessKey, setActive, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEnabled, setError, setFocus, setIconColor, setIconFontSize, setIconPosition, setIconPrefix, setIconSize, setIconType, setLabel, setLength, setName, setPlaceholder, setReadOnly, setSelectionRange, setSuccess, setTabIndex, setText, setToggleReadOnly, setType, setup, setValue, updateLabelActiveStyleaddValidationChangedHandler, addValidator, createBlankValidator, getErrorHandler, getErrorHandlerMixin, getErrorHandlerType, getValidatorMixin, isAllowBlank, isValidateOnBlur, removeValidator, reset, setAllowBlank, setErrorHandler, setErrorHandlerType, setHelperText, setupBlurValidation, setValidateOnBlur, setValidators, setValue, setValue, showErrors, validate, validate$this, add, add, addAttachHandler, addOrientationChangeHandler, body, clearActiveClass, enableFeature, getBackfaceVisibility, getBackgroundColor, getBorder, getBorderBottom, getBorderLeft, getBorderMixin, getBorderRadius, getBorderRight, getBorderTop, getCenterOn, getCenterOnMixin, getChildren, getChildrenList, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getDimensionMixin, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHandlerRegistry, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getLayoutPosition, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getOrientation, getOrientationMixin, getPerspective, getPerspectiveOrigin, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipHTML, getTooltipMixin, getTooltipPosition, getTransform, getTransformMixin, getTransformOrigin, getTransformStyle, getTruncateMixin, getVerticalAlign, getVerticalAlignMixin, getWaves, getWavesMixin, getWidth, insert, insert, isCircle, isDetectOrientation, isFeatureEnabled, isHoverable, isSeparator, isTruncate, onUnload, registerHandler, removeHandler, setBackfaceVisibility, setBackgroundColor, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setCenterOn, setCircle, setClass, setDataAttribute, setDepth, setDetectOrientation, setDisplay, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexWrap, setFloat, setFontSize, setFontSize, setFontWeight, setGrid, setGwtDisplay, setHideOn, setHoverable, setId, setInitialClasses, setLayoutPosition, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffset, setOpacity, setOrientation, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPerspective, setPerspectiveOrigin, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setStyle, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipHTML, setTooltipPosition, setTop, setTransform, setTransformOrigin, setTransformStyle, setTransition, setTruncate, setVerticalAlign, setVisibility, setWaves, stopTouchStartEvent, windowadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisibleforEach, spliteratorprotected MaterialNumberBox()
public void setStep(String step)
step - "any" or number like for example 1 or 2.5 or 100, etc...public T getValue()
getValue in interface com.google.gwt.user.client.TakesValue<T>getValue in interface com.google.gwt.user.client.ui.HasValue<T>getValue in class MaterialValueBox<T>protected abstract T parseNumber(double number)
public Double getValueAsNumber()
Copyright © 2018. All rights reserved.