java.lang.Object
java.lang.Enum<TabMode>
de.espirit.firstspirit.access.store.templatestore.gom.TabMode
All Implemented Interfaces:
Serializable, Comparable<TabMode>, Constable

public enum TabMode extends Enum<TabMode>
Modes for tabulators.
Since:
4.0
  • Enum Constant Details

    • NONE

      public static final TabMode NONE
      Do not display any tabs
      Since:
      4.0
    • TOP

      public static final TabMode TOP
      Display tabs at top position
      Since:
      4.0
    • LEFT

      public static final TabMode LEFT
      Display tabs at left position
      Since:
      4.0
    • BOTTOM

      public static final TabMode BOTTOM
      Display tabs at bottom position
      Since:
      4.0
  • Method Details

    • values

      public static TabMode[] 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 TabMode 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
    • toSwing

      public int toSwing()
      The swing constant, e.g. SwingConstants.LEFT
      Since:
      4.0
    • valueOf

      @Nullable public static @Nullable TabMode valueOf(Integer code)
      Exceptional handling to find a tab mode by its swing code, where 0 is used for no tabs.
      Parameters:
      code - The swing code or null.
      Returns:
      The matching tab mode.
      Since:
      4.0