Enum Class TabSides

java.lang.Object
java.lang.Enum<TabSides>
net.minheur.potoflux.screen.tabs.TabSides
All Implemented Interfaces:
Serializable, Comparable<TabSides>, Constable, IComboSetting

public enum TabSides extends Enum<TabSides> implements IComboSetting
Enum extending Side, also featuring a key and translated name
  • Enum Constant Details

    • TOP

      public static final TabSides TOP
      Side.TOP
    • BOTTOM

      public static final TabSides BOTTOM
      Side.BOTTOM
    • LEFT

      public static final TabSides LEFT
      Side.LEFT
  • Method Details

    • values

      public static TabSides[] 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 TabSides 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
    • returnValue

      public String returnValue()
      Getter for the code
      Specified by:
      returnValue in interface IComboSetting
      Returns:
      code
    • getSide

      public javafx.geometry.Side getSide()
      Getter for the real side
      Returns:
      side
    • getFromCode

      @Nullable public static @Nullable TabSides getFromCode(String code)
      Static getter for a TabSides from a code
      Parameters:
      code - to get the side of
      Returns:
      the corresponding side, or null if not exists
    • toString

      public String toString()
      Make to string gets the translated name
      Overrides:
      toString in class Enum<TabSides>
      Returns:
      the translated name