Enum Class TwoPhaseActionSelector.Phase

java.lang.Object
java.lang.Enum<TwoPhaseActionSelector.Phase>
jfxutils.TwoPhaseActionSelector.Phase
All Implemented Interfaces:
Serializable, Comparable<TwoPhaseActionSelector.Phase>, Constable
Enclosing class:
TwoPhaseActionSelector<T,U>

public static enum TwoPhaseActionSelector.Phase extends Enum<TwoPhaseActionSelector.Phase>
Represents the current phase of the action selection process.
  • Enum Constant Details

    • SELECT_FROM

      public static final TwoPhaseActionSelector.Phase SELECT_FROM
      Phase where the user selects the source position.
    • SELECT_ACTION

      public static final TwoPhaseActionSelector.Phase SELECT_ACTION
      Phase where the user selects which action to apply at the selected position.
    • READY_TO_MOVE

      public static final TwoPhaseActionSelector.Phase READY_TO_MOVE
      Phase where both source position and action have been selected and the move is ready to be executed.
  • Method Details

    • values

      public static TwoPhaseActionSelector.Phase[] 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 TwoPhaseActionSelector.Phase 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