Enum Options.Tab

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

    public static enum Options.Tab
    extends java.lang.Enum<Options.Tab>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Options.Tab getOpen()
      Gets the currently opened options tab
      boolean isOpen()
      Checks if this options tab is open
      boolean open()
      Attempts to open this options tab
      static Options.Tab valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Options.Tab[] 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
    • Method Detail

      • values

        public static Options.Tab[] 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 (Options.Tab c : Options.Tab.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Options.Tab 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
      • isOpen

        public boolean isOpen()
        Checks if this options tab is open
        Returns:
        true if this tab is open, false otherwise
      • open

        public boolean open()
        Attempts to open this options tab
        Returns:
        true if the options tab was opened, false otherwise
      • getOpen

        public static Options.Tab getOpen()
        Gets the currently opened options tab
        Returns:
        the currently opened options tab