Package org.daypilot.ui.enums
Enum TimeScale
- java.lang.Object
-
- java.lang.Enum<TimeScale>
-
- org.daypilot.ui.enums.TimeScale
-
-
Method Summary
Modifier and Type Method Description static TimeScale
fromString(java.lang.String id)
java.lang.String
toString()
static TimeScale
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TimeScale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINUTE
public static final TimeScale MINUTE
-
HOUR
public static final TimeScale HOUR
-
DAY
public static final TimeScale DAY
-
WEEK
public static final TimeScale WEEK
-
MONTH
public static final TimeScale MONTH
-
YEAR
public static final TimeScale YEAR
-
CELL_DURATION
public static final TimeScale CELL_DURATION
-
MANUAL
public static final TimeScale MANUAL
-
-
Method Detail
-
values
public static TimeScale[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeScale 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
-
fromString
public static TimeScale fromString(java.lang.String id)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<TimeScale>
-
-