Class PredefinedRange<T>

java.lang.Object
com.jbstrap.ui.components.form.items.PredefinedRange<T>
Type Parameters:
T - The range type

public class PredefinedRange<T> extends Object
Predefined range, for range type input fields
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • PredefinedRange

      public PredefinedRange(String name, String title, T minValue, T maxValue)
      Creates a predefined range.
      Parameters:
      name - The range name. The name must be unique within the component
      title - The title of the range, that the user will see on the interface
      minValue - The minimum value of the range
      maxValue - The maximum value of the range
      Throws:
      NullPointerException - If the range name, min or max value is null
  • Method Details

    • setTitle

      public PredefinedRange<T> setTitle(String title)
      Sets the title of the range
      Parameters:
      title - The range title, that the user will see on the interface
      Returns:
      The predefined range class
    • getName

      public String getName()
      Gets the name of the range
      Returns:
      The name of the range
    • getTitle

      public String getTitle()
      Gets the title of the range
      Returns:
      The name of the range or null, if it has no title
    • getMinValue

      public T getMinValue()
      Gets the minimum value of the range
      Returns:
      The minimum value of the range
    • getMaxValue

      public T getMaxValue()
      Gets the maximum value of the range
      Returns:
      The maximum value of the range