Interface NumberRangeInput<T extends NumberRangeInput<T>>
- Type Parameters:
T
- the type of the implementing class, for method chaining.
- All Known Subinterfaces:
AdventureNumberRangeInput<T>
- All Known Implementing Classes:
PaperNumberRangeInput
,PENumberRangeInput
,SpigotNumberRangeInput
public interface NumberRangeInput<T extends NumberRangeInput<T>>
Interface for number range input in a dialog.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionend
(float end) Set the end value of the rangeSet the initial value of the rangeSet the label for the inputlabelFormat
(String labelFormat) Set the format for the labelstart
(float start) Set the start value of the rangeSet the step value for the rangewidth
(int width) Set the width of the input
-
Field Details
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTH- See Also:
-
DEFAULT_LABEL_FORMAT
- See Also:
-
-
Method Details
-
width
Set the width of the input- Parameters:
width
- the width- Returns:
- the current instance for method chaining
-
label
Set the label for the input- Parameters:
label
- the label text- Returns:
- the current instance for method chaining
-
labelFormat
Set the format for the label- Parameters:
labelFormat
- the format string for the label- Returns:
- the current instance for method chaining
-
start
Set the start value of the range- Parameters:
start
- the start value- Returns:
- the current instance for method chaining
-
end
Set the end value of the range- Parameters:
end
- the end value- Returns:
- the current instance for method chaining
-
initial
Set the initial value of the range- Parameters:
initial
- the initial value, can be null- Returns:
- the current instance for method chaining
-
step
Set the step value for the range- Parameters:
step
- the step value, can be null- Returns:
- the current instance for method chaining
-