Enum ETimeScale
- java.lang.Object
-
- java.lang.Enum<ETimeScale>
-
- de.xima.fc.gui.bean.statistics.model.ETimeScale
-
- All Implemented Interfaces:
Serializable,Comparable<ETimeScale>
public enum ETimeScale extends Enum<ETimeScale>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYMONTHUSER_DEFINEDWEEKYEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetI18nKey()Get the i18n key of the timescale.StringgetI18nPatternKey()Get the i18n key of the pattern used for the x-axis.StringgetI18nSheetKey()Get the i18n key of the excel sheet name.booleanin(ETimeScale... elements)static ETimeScalevalueOf(String name)Returns the enum constant of this type with the specified name.static ETimeScale[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER_DEFINED
public static final ETimeScale USER_DEFINED
-
DAY
public static final ETimeScale DAY
-
WEEK
public static final ETimeScale WEEK
-
MONTH
public static final ETimeScale MONTH
-
YEAR
public static final ETimeScale YEAR
-
-
Method Detail
-
values
public static ETimeScale[] 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 (ETimeScale c : ETimeScale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETimeScale 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
-
getI18nKey
public String getI18nKey()
Get the i18n key of the timescale.- Returns:
- the i18n key (never null)
-
getI18nPatternKey
public String getI18nPatternKey()
Get the i18n key of the pattern used for the x-axis.- Returns:
- the i18n key (null for dynamic user-defined date ranges)
-
getI18nSheetKey
public String getI18nSheetKey()
Get the i18n key of the excel sheet name.- Returns:
- the i18n key (null for dynamic user-defined date ranges)
-
in
public boolean in(ETimeScale... elements)
- Parameters:
elements- the enum elements to check this element against- Returns:
- true if this element is contained in the set of the provided elements, otherwise false
-
-