Class RangeInput<T extends RangeInput<T>>


public class RangeInput<T extends RangeInput<T>> extends Input<T>
Represents an HTML5 <input type="range"> element for selecting a value from a range using a slider.

The RangeInput provides a slider control for selecting a numeric value within a specified range. It is useful for settings where the exact value is less important than the approximate position, such as volume controls or brightness settings.

Usage Example:


 RangeInput volume = new RangeInput("volume", "50");
 form.addElement(volume);
 
Since:
HTML5
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • RangeInput

      public RangeInput()
      Creates a new RangeInput with no name or initial value.
    • RangeInput

      public RangeInput(String name)
      Creates a new RangeInput with the specified name.
      Parameters:
      name - The name attribute for the input element, used for form submission.
    • RangeInput

      public RangeInput(String name, String value)
      Creates a new RangeInput with the specified name and initial value.
      Parameters:
      name - The name attribute for the input element, used for form submission.
      value - The initial value for the slider position.