VALUE
- is the generic type of the value
.ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetRangeField<ADAPTER extends UiWidgetAdapterRangeField<VALUE>,VALUE> extends AbstractUiWidgetField<ADAPTER,VALUE,VALUE> implements UiWidgetRangeField<VALUE>
UiWidgetRangeField
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private VALUE |
maximumValue |
private VALUE |
minimumValue |
STYLE_FIELD, STYLE_LABEL, STYLE_MANDATORY, STYLE_VIEW
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
Constructor and Description |
---|
AbstractUiWidgetRangeField(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
RoleSlider |
getAriaRole()
This method gets the
Accessibility.WAI_ARIA role of this object. |
protected Class<? extends Role> |
getAriaRoleFixedType() |
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. |
clearValidationFailure, convertFromValue, convertToValue, doGetValue, doSetValue, getLabel, getLabelWidget, getNullValue, getSource, getValidationFailure, getValueAsString, getValueClass, getValueDirect, initializeWidgetAdapter, isTrimValue, setId, setLabel, setMandatory, setTrimValue, setValidationFailure, setValue, setValueAsString, setVisible, toString
addFocusHandler, getAccessKey, isFocused, onAccessKeyPressed, removeFocusHandler, setAccessKey, setFocused, setFocused
addChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doSetMode, doValidate, 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, visibilityChanged
addEventHandler, 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, setParent
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLabel, getLabelWidget, setLabel
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
setTrimValue
isTrimValue
setAccessKey
getAccessKey
addFocusHandler, removeFocusHandler
isFocused
setFocused
private VALUE minimumValue
getMinimumValue()
private VALUE maximumValue
getMaximumValue()
public AbstractUiWidgetRangeField(UiContext context, ADAPTER widgetAdapter)
context
- is the context
.widgetAdapter
- is the widget adapter
. Typically null
for
lazy initialization.public final RoleSlider getAriaRole()
Accessibility.WAI_ARIA
role
of this object. UiWidget
) is supposed to provide high-level
widgets and support setting the according Role
and their attributes automatically. Therefore
users should only use this for special situations e.g. for setting aria-hidden
intentionally for a visible object.getAriaRole
in interface AttributeReadAriaRole
getAriaRole
in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterRangeField<VALUE>,VALUE>
Role
or null
if NOT set.Accessibility
protected Class<? extends Role> getAriaRoleFixedType()
getAriaRoleFixedType
in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterRangeField<VALUE>,VALUE>
Class
reflecting the Role
that is fixed for this widget or null
if the role can be changed dynamically.public VALUE getMinimumValue()
value
of this object. A legal value
has
to be greater or equal to this minimum
.getMinimumValue
in interface AttributeReadMinimumValue<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>
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>
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>
maximum
- is the new maximum value
to set. Use e.g. Integer.MAX_VALUE
to
unset.Copyright © 2001–2016 mmm-Team. All rights reserved.