java.lang.Object
java.lang.Enum<SnapStep>
com.vaadin.componentfactory.timeline.model.SnapStep
All Implemented Interfaces:
Serializable, Comparable<SnapStep>, java.lang.constant.Constable

public enum SnapStep extends Enum<SnapStep>
Snap for timeline is restricted to these values: one hour, half hour or fifteen minutes.
  • Enum Constant Details

    • ONE_HOUR

      public static final SnapStep ONE_HOUR
    • HALF_HOUR

      public static final SnapStep HALF_HOUR
    • QUARTER

      public static final SnapStep QUARTER
  • Method Details

    • values

      public static SnapStep[] 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 SnapStep 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 name
      NullPointerException - if the argument is null
    • getMinutes

      public Integer getMinutes()