Class PredefinedRange<T>
java.lang.Object
com.jbstrap.ui.components.form.items.PredefinedRange<T>
- Type Parameters:
T
- The range type
Predefined range, for range type input fields
- Since:
- 4.0
- Author:
- JBStrap
-
Constructor Summary
ConstructorDescriptionPredefinedRange
(String name, String title, T minValue, T maxValue) Creates a predefined range. -
Method Summary
-
Constructor Details
-
PredefinedRange
Creates a predefined range.- Parameters:
name
- The range name. The name must be unique within the componenttitle
- The title of the range, that the user will see on the interfaceminValue
- The minimum value of the rangemaxValue
- The maximum value of the range- Throws:
NullPointerException
- If the range name, min or max value isnull
-
-
Method Details
-
setTitle
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
Gets the name of the range- Returns:
- The name of the range
-
getTitle
Gets the title of the range- Returns:
- The name of the range or
null
, if it has no title
-
getMinValue
Gets the minimum value of the range- Returns:
- The minimum value of the range
-
getMaxValue
Gets the maximum value of the range- Returns:
- The maximum value of the range
-