com.vaadin.flow.component.charts.model.
Enum RangeSelectorTimespan
- java.lang.Object
-
- java.lang.Enum<RangeSelectorTimespan>
-
- com.vaadin.flow.component.charts.model.RangeSelectorTimespan
-
All Implemented Interfaces:
public enum RangeSelectorTimespan extends Enum<RangeSelectorTimespan> implements ChartEnum
Possible timespan values for range selector buttons
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
DAY
MILLISECOND
MINUTE
MONTH
SECOND
WEEK
YEAR
YEAR_TO_DATE
-
Method Summary
All Methods Modifier and Type Method Description String
getName()
String
toString()
static RangeSelectorTimespan
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static RangeSelectorTimespan[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final RangeSelectorTimespan MILLISECOND
-
SECOND
public static final RangeSelectorTimespan SECOND
-
MINUTE
public static final RangeSelectorTimespan MINUTE
-
DAY
public static final RangeSelectorTimespan DAY
-
WEEK
public static final RangeSelectorTimespan WEEK
-
MONTH
public static final RangeSelectorTimespan MONTH
-
YEAR_TO_DATE
public static final RangeSelectorTimespan YEAR_TO_DATE
-
YEAR
public static final RangeSelectorTimespan YEAR
-
ALL
public static final RangeSelectorTimespan ALL
-
-
Method Detail
-
values
public static RangeSelectorTimespan[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RangeSelectorTimespan c : RangeSelectorTimespan.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RangeSelectorTimespan valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name
- the name of the enum constant to be returned.Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
toString
public String toString()
Overrides:
toString
in classEnum<RangeSelectorTimespan>
-
-