Module io.github.mmm.ui.api.number
Interface UiSlider<V extends Number>
-
- 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
public interface UiSlider<V extends Number> extends UiNumericInput<V>
UiNumericInputfor aNumbervaluevia 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_PREFIX
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
STYLE_SUFFIX, STYLE_WITH_SUFFIX
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
STYLE_INVALID
-
Fields inherited from interface io.github.mmm.ui.api.widget.input.UiInput
STYLE_INPUT
-
Fields inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
STYLE_MANDATORY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisTextEditable()booleanisTextVisible()voidsetTextEditable(boolean textEditable)voidsetTextVisible(boolean textVisible)-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttached
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWritePrefix
getPrefix, setPrefix
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
getSuffix, setSuffix
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
getValidationFailure, setValidationFailure, setValidationFailure
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.ui.api.widget.input.UiAbstractInput
getName, setName
-
Methods inherited from interface io.github.mmm.ui.api.widget.input.UiInput
getContainerWidget, getNameWidget, hasContainerWidget, hasNameWidget
-
Methods inherited from interface io.github.mmm.ui.api.widget.number.UiNumericInput
getRange
-
Methods inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
getOriginalValue, getValidator, getValue, getValueOrThrow, isValid, reset, setOriginalValue, setValidator, setValue, setValue, setValueForUser
-
Methods 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 Detail
-
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().
-
-