Enum GUIEvent.Origin

java.lang.Object
java.lang.Enum<GUIEvent.Origin>
com.blackrook.gui.GUIEvent.Origin
All Implemented Interfaces:
Serializable, Comparable<GUIEvent.Origin>
Enclosing class:
GUIEvent

public static enum GUIEvent.Origin extends Enum<GUIEvent.Origin>
Origin of event.
Author:
Matthew Tropiano
  • Enum Constant Details

    • UNKNOWN

      public static final GUIEvent.Origin UNKNOWN
      Event has unknown origin.
    • ACTION

      public static final GUIEvent.Origin ACTION
      Event originated from an action call.
    • INPUT

      public static final GUIEvent.Origin INPUT
      Event originated from Input.
    • GUI

      public static final GUIEvent.Origin GUI
      Event originated from GUI System.
  • Method Details

    • values

      public static GUIEvent.Origin[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

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