ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().VALUE - is the generic type of the value.public abstract class AbstractUiWidgetNumberField<ADAPTER extends UiWidgetAdapterNumberField<VALUE>,VALUE extends Number & Comparable<VALUE>> extends AbstractUiWidgetTextualInputField<ADAPTER,VALUE,VALUE> implements UiWidgetRangeField<VALUE>
UiWidgetRangeField.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer| Modifier and Type | Field and Description |
|---|---|
private VALUE |
maximumValue |
private VALUE |
minimumValue |
STYLE_FIELD, STYLE_LABEL, STYLE_MANDATORY, STYLE_VIEWSTYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAPROPERTY_LABELACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY| Constructor and Description |
|---|
AbstractUiWidgetNumberField(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doValidate(ValidationState state,
VALUE value)
This method is called from
AbstractUiFeatureValueAndValidation.validate(ValidationState) and performs the actual validation of this
object. |
VALUE |
getMaximumValue()
This method gets the maximum
value of this object. |
VALUE |
getMinimumValue()
This method gets the minimum
value of this object. |
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter. |
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. |
getMaximumTextLength, setMaximumTextLengthclearValidationFailure, convertFromValue, convertToValue, doGetValue, doSetValue, getLabel, getLabelWidget, getNullValue, getSource, getValidationFailure, getValueAsString, getValueClass, getValueDirect, isTrimValue, setId, setLabel, setMandatory, setTrimValue, setValidationFailure, setValue, setValueAsString, setVisible, toStringaddFocusHandler, getAccessKey, isFocused, onAccessKeyPressed, removeFocusHandler, setAccessKey, setFocused, setFocusedaddChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doSetMode, getAriaRole, getAriaRoleFixedType, getChild, getChild, getChildCount, getChildIndex, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeChangeHandler, removeFromParent, removeStyle, setAriaRole, setEnabled, setIdPrefix, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, visibilityChangedaddEventHandler, addValidator, clearMessagesLocal, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeEventHandler, removeFromParent, removeValidator, setModified, setParentaddValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLabel, getLabelWidget, setLabelgetChild, getChildgetChildCount, getChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolegetValuegetValueAndValidate, getValueDirectaddChangeHandler, removeChangeHandlerresetValue, setValue, setValue, setValueForUsergetOriginalValue, getValueOrExceptionaddValidatorMandatory, isMandatoryaddValidator, removeValidatorsetValueAsStringgetValueAsStringsetValidationFailuregetValidationFailuresetTrimValueisTrimValuesetAccessKeygetAccessKeyaddFocusHandler, removeFocusHandlerisFocusedsetFocusedprivate VALUE extends Number & Comparable<VALUE> minimumValue
getMinimumValue()private VALUE extends Number & Comparable<VALUE> maximumValue
getMaximumValue()public AbstractUiWidgetNumberField(UiContext context, ADAPTER widgetAdapter)
context - is the context.widgetAdapter - is the widget adapter. Typically null for
lazy initialization.protected void initializeWidgetAdapter(ADAPTER adapter)
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter. All
attributes of this widget need to be set in the UiWidgetAdapter.initializeWidgetAdapter in class AbstractUiWidgetTextualInputField<ADAPTER extends UiWidgetAdapterNumberField<VALUE>,VALUE extends Number & Comparable<VALUE>,VALUE extends Number & Comparable<VALUE>>adapter - is the UiWidgetAdapter to initialize.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 & Comparable<VALUE>>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 & Comparable<VALUE>>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 & Comparable<VALUE>>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 & Comparable<VALUE>>maximum - is the new maximum value to set. Use e.g. Integer.MAX_VALUE to
unset.protected void doValidate(ValidationState state, VALUE value)
AbstractUiFeatureValueAndValidation.validate(ValidationState) and performs the actual validation of this
object. This method performs the recursive validation of potential children of this widget excluding the
validation of this widget itself. A legal implementation of a composite widget needs to call
AbstractUiFeatureValueAndValidation.validate(ValidationState) on all child widgets.
validation of this widget by delegating to
AbstractUiWidgetNative.validateRecursive(ValidationState). It may be overridden to collect potential validation
failures and attach them to this widget. You should not forget the super-call in such case.doValidate in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterNumberField<VALUE>,VALUE extends Number & Comparable<VALUE>>state - is the ValidationState. Never null.value - is the current value of this object that has already be determined.Copyright © 2001–2016 mmm-Team. All rights reserved.