Enum Location.LocationType

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

    public static enum Location.LocationType
    extends java.lang.Enum<Location.LocationType>
    The type of location. Stock or Production Stock locations hold inventory while production locations are used to display production schedules and other jobs For example a WET room could be defined as a production location which contains 4 terminals. These 4 terminals may then pull stock from a set of RACKS which are stock locations.
    Author:
    SGSystems
    • Method Detail

      • values

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

        public static Location.LocationType 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
      • getType

        public int getType()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Location.LocationType>
      • getCombobox

        public static org.jdesktop.swingx.JXComboBox getCombobox()