Interface UiSlider<V extends Number & Comparable<?>>

Type Parameters:
V - type of the value.
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 & Comparable<?>> extends UiNumericInput<V>
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
  • Method Details

    • isTextVisible

      boolean isTextVisible()
      Returns:
      true if the output (value as text beside the slider) is visible, false otherwise. By default output should be visible.
    • setTextVisible

      void setTextVisible(boolean textVisible)
      Parameters:
      textVisible - the new value of isTextVisible().
    • isTextEditable

      boolean isTextEditable()
      Returns:
      true if the output (value as text beside the slider) is editable, false otherwise. By default output is not editable. This can be changed to 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 using UiNumberInput instead.
    • setTextEditable

      void setTextEditable(boolean textEditable)
      Parameters:
      textEditable - the new value of isTextEditable().