Package com.jalios.jcms.analytics.ui
Enum ReportHandler.PredefinedPeriod
- java.lang.Object
-
- java.lang.Enum<ReportHandler.PredefinedPeriod>
-
- com.jalios.jcms.analytics.ui.ReportHandler.PredefinedPeriod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ReportHandler.PredefinedPeriod>
- Enclosing class:
- ReportHandler
public static enum ReportHandler.PredefinedPeriod extends java.lang.Enum<ReportHandler.PredefinedPeriod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENT_YEARLAST_12_MONTHSLAST_3_MONTHSLAST_30_DAYSLAST_7_DAYSLAST_90_DAYSLAST_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReportHandler.PredefinedPeriodgetFromId(java.lang.String id)java.lang.StringgetId()java.lang.StringgetLabel()voidsetId(java.lang.String id)voidsetLabel(java.lang.String label)java.lang.StringtoString()static ReportHandler.PredefinedPeriodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ReportHandler.PredefinedPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAST_7_DAYS
public static final ReportHandler.PredefinedPeriod LAST_7_DAYS
-
LAST_30_DAYS
public static final ReportHandler.PredefinedPeriod LAST_30_DAYS
-
LAST_90_DAYS
public static final ReportHandler.PredefinedPeriod LAST_90_DAYS
-
LAST_3_MONTHS
public static final ReportHandler.PredefinedPeriod LAST_3_MONTHS
-
LAST_12_MONTHS
public static final ReportHandler.PredefinedPeriod LAST_12_MONTHS
-
LAST_YEAR
public static final ReportHandler.PredefinedPeriod LAST_YEAR
-
CURRENT_YEAR
public static final ReportHandler.PredefinedPeriod CURRENT_YEAR
-
-
Method Detail
-
values
public static ReportHandler.PredefinedPeriod[] 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 (ReportHandler.PredefinedPeriod c : ReportHandler.PredefinedPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReportHandler.PredefinedPeriod valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getFromId
public static ReportHandler.PredefinedPeriod getFromId(java.lang.String id)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ReportHandler.PredefinedPeriod>
-
-