Enum Class Timeline.TimelineType
- All Implemented Interfaces:
Serializable
,Comparable<Timeline.TimelineType>
,Constable
- Enclosing class:
- Timeline
The timeline display types
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe component's background will be light, while the items will have a dark background.The component's background will be light, while the items will have a dark background.The default display type.The component's background will be dark, while the items will have a light background.The component's background will be dark, while the items will have a light background. -
Method Summary
Modifier and TypeMethodDescriptionstatic Timeline.TimelineType
Returns the enum constant of this class with the specified name.static Timeline.TimelineType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAT
The default display type. The icons of the events and times will be displayed on the left side of the component, and the description of the event will be displayed on the right side. The icons will not be colored, they will only have frames -
LIGHT_LEFT
The component's background will be dark, while the items will have a light background. The item icon will be on the left side, and their background color can be specified. The item contents will be displayed on the right side: the title will be on the top, under it in the middle the description, and under it the time of the event. -
LIGHT_CENTER
The component's background will be dark, while the items will have a light background. The item icon will be in the center of the component, and their background color can be specified. The first item will be displayed on the left side, the title will be on the top, under it in the middle the description. The item date will be on the left side of the component. The next item will be mirrored from the first item. This original-mirrored pattern will apply to the rest of the items. -
DARK_LEFT
The component's background will be light, while the items will have a dark background. The item icon will be on the left side, and their background color can be specified. The item contents will be displayed on the right side: the title will be on the top, under it in the middle the description, and under it the time of the event. -
DARK_CENTER
The component's background will be light, while the items will have a dark background. The item icon will be in the center of the component, and their background color can be specified. The first item will be displayed on the left side, the title will be on the top, under it in the middle the description. The item date will be on the left side of the component. The next item will be mirrored from the first item. This original-mirrored pattern will apply to the rest of the items.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-