Module io.github.mmm.ui.api.number
Interface UiSlider<V extends Number & Comparable<?>>
- Type Parameters:
V- type of thevalue.
- All Superinterfaces:
AttributeReadAttached,AttributeReadEnabled,AttributeReadId,AttributeReadValid,AttributeReadValue<V>,AttributeReadVisible,AttributeWriteEnabled,AttributeWriteId,AttributeWritePrefix,AttributeWriteReadOnly,AttributeWriteSuffix,AttributeWriteTooltip,AttributeWriteValidationFailure,AttributeWriteValue<V>,AttributeWriteValueForUser<V>,AttributeWriteVisible,io.github.mmm.event.EventSource<UiEvent,,UiEventListener> UiAbstractInput<V>,UiInput<V>,UiNumericInput<V>,UiRegularWidget,UiValidatableWidget<V>,UiValuedWidget<V>,UiWidget
- All Known Subinterfaces:
UiIntegerSlider,UiLongSlider
UiNumericInput for a Number value via a slider. A slider is like a kind of button
that can be slided along a horizontal scale.Example:
- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWritePrefix
STYLE_PREFIX, STYLE_WITH_PREFIXFields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
STYLE_SUFFIX, STYLE_WITH_SUFFIXFields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
STYLE_INVALIDFields inherited from interface io.github.mmm.ui.api.widget.input.UiInput
STYLE_INPUTFields inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
STYLE_MANDATORY -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetTextEditable(boolean textEditable) voidsetTextVisible(boolean textVisible) Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttachedMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWritePrefix
getPrefix, setPrefixMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
getSuffix, setSuffixMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltipMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
getValidationFailure, setValidationFailure, setValidationFailureMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.ui.api.widget.input.UiAbstractInput
getName, setNameMethods inherited from interface io.github.mmm.ui.api.widget.input.UiInput
getContainerWidget, getNameWidget, hasContainerWidget, hasNameWidgetMethods inherited from interface io.github.mmm.ui.api.widget.number.UiNumericInput
getRangeMethods inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
getOriginalValue, getValidator, getValue, getValueOrThrow, isValid, reset, setOriginalValue, setValidator, setValue, setValue, setValueForUserMethods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getModificationTimestamp, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isVisible, isVisible, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
Method Details
-
isTextVisible
boolean isTextVisible()- Returns:
trueif the output (valueas text beside the slider) is visible,falseotherwise. By default output should be visible.
-
setTextVisible
void setTextVisible(boolean textVisible) - Parameters:
textVisible- the new value ofisTextVisible().
-
isTextEditable
boolean isTextEditable()- Returns:
trueif the output (valueas text beside the slider) is editable,falseotherwise. By default output is not editable. This can bechangedto allow power-users to edit the value by typing what is usually faster than moving the slider. However, if efficient typing of the value by power-users is an issue, you should consider usingUiNumberInputinstead.
-
setTextEditable
void setTextEditable(boolean textEditable) - Parameters:
textEditable- the new value ofisTextEditable().
-