uk.co.keang.sudoku
Enum SudokuButton.BtnState

java.lang.Object
  extended by java.lang.Enum<SudokuButton.BtnState>
      extended by uk.co.keang.sudoku.SudokuButton.BtnState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SudokuButton.BtnState>
Enclosing class:
SudokuButton

public static enum SudokuButton.BtnState
extends java.lang.Enum<SudokuButton.BtnState>


Enum Constant Summary
ERROR
           
NORMAL
           
REFERENCE
           
SELECTED
           
 
Method Summary
(package private)  java.awt.Color getBkgColor()
           
(package private)  java.awt.Color getFrgColor()
           
static SudokuButton.BtnState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SudokuButton.BtnState[] 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

SELECTED

public static final SudokuButton.BtnState SELECTED

REFERENCE

public static final SudokuButton.BtnState REFERENCE

NORMAL

public static final SudokuButton.BtnState NORMAL

ERROR

public static final SudokuButton.BtnState ERROR
Method Detail

values

public static SudokuButton.BtnState[] 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 (SudokuButton.BtnState c : SudokuButton.BtnState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SudokuButton.BtnState 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

getBkgColor

java.awt.Color getBkgColor()

getFrgColor

java.awt.Color getFrgColor()