Enum DatePickerRange
- java.lang.Object
-
- java.lang.Enum<DatePickerRange>
-
- org.jbpm.workbench.common.client.list.DatePickerRange
-
- All Implemented Interfaces:
Serializable,Comparable<DatePickerRange>
public enum DatePickerRange extends Enum<DatePickerRange>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Last24HoursLast30DaysLast7DaysLastHourToday
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<DatePickerRange>getDatePickerRangeFromLabel(String label)org.uberfire.client.views.pfly.widgets.MomentgetEndDate()StringgetLabel()org.uberfire.client.views.pfly.widgets.MomentgetStartDate()static DatePickerRangevalueOf(String name)Returns the enum constant of this type with the specified name.static DatePickerRange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LastHour
public static final DatePickerRange LastHour
-
Today
public static final DatePickerRange Today
-
Last24Hours
public static final DatePickerRange Last24Hours
-
Last7Days
public static final DatePickerRange Last7Days
-
Last30Days
public static final DatePickerRange Last30Days
-
-
Method Detail
-
values
public static DatePickerRange[] 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 (DatePickerRange c : DatePickerRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatePickerRange 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
-
getDatePickerRangeFromLabel
public static Optional<DatePickerRange> getDatePickerRangeFromLabel(String label)
-
getLabel
public String getLabel()
-
getStartDate
public org.uberfire.client.views.pfly.widgets.Moment getStartDate()
-
getEndDate
public org.uberfire.client.views.pfly.widgets.Moment getEndDate()
-
-