Enum Class Timeline.TimelineType

java.lang.Object
java.lang.Enum<Timeline.TimelineType>
com.jbstrap.ui.components.timeline.Timeline.TimelineType
All Implemented Interfaces:
Serializable, Comparable<Timeline.TimelineType>, Constable
Enclosing class:
Timeline

public static enum Timeline.TimelineType extends Enum<Timeline.TimelineType>
The timeline display types
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • FLAT

      public static final Timeline.TimelineType 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

      public static final Timeline.TimelineType 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

      public static final Timeline.TimelineType 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

      public static final Timeline.TimelineType 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

      public static final Timeline.TimelineType 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

      public static Timeline.TimelineType[] 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

      public static Timeline.TimelineType valueOf(String name)
      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 name
      NullPointerException - if the argument is null