Package jexer

Enum TButton.Style

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TButton.Style>
    Enclosing class:
    TButton

    public static enum TButton.Style
    extends java.lang.Enum<TButton.Style>
    Available styles of the button.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARROW_LEFT
      A button arrow pointing left.
      ARROW_RIGHT
      A button arrow pointing right.
      DIAMOND
      A button with diamond end points.
      ROUND
      A button with round semi-circle edges.
      SQUARE
      A fully-text square button.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TButton.Style valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TButton.Style[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SQUARE

        public static final TButton.Style SQUARE
        A fully-text square button. The default style.
      • ROUND

        public static final TButton.Style ROUND
        A button with round semi-circle edges.
      • DIAMOND

        public static final TButton.Style DIAMOND
        A button with diamond end points.
      • ARROW_LEFT

        public static final TButton.Style ARROW_LEFT
        A button arrow pointing left.
      • ARROW_RIGHT

        public static final TButton.Style ARROW_RIGHT
        A button arrow pointing right.
    • Method Detail

      • values

        public static TButton.Style[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TButton.Style c : TButton.Style.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TButton.Style valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null