Enum Class TabLayoutPolicy

java.lang.Object
java.lang.Enum<TabLayoutPolicy>
com.github.tadukoo.view.constants.TabLayoutPolicy
All Implemented Interfaces:
Serializable, Comparable<TabLayoutPolicy>, Constable

public enum TabLayoutPolicy extends Enum<TabLayoutPolicy>
Tab Layout Policy represents what to do when there are too many tabs to fit in the given space on a Tabbed Form
Version:
Alpha v.0.3.3
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

    • WRAP_TAB_LAYOUT

      public static final TabLayoutPolicy WRAP_TAB_LAYOUT
      The tabs will be wrapped if there are too many to fit in the given space
    • SCROLL_TAB_LAYOUT

      public static final TabLayoutPolicy SCROLL_TAB_LAYOUT
      The tabs can be scrolled if there are too many to fit in the given space
  • Field Details

    • value

      private final int value
      The int value used to represent the layout policy
  • Constructor Details

    • TabLayoutPolicy

      private TabLayoutPolicy(int value)
      Constructs a new tab layout policy with the given value
      Parameters:
      value - The int value used to represent the layout policy
  • Method Details

    • values

      public static TabLayoutPolicy[] 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 TabLayoutPolicy 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
    • getValue

      public int getValue()
      Returns:
      The int value used to represent the layout policy