app.spa
Enum StateFlag

java.lang.Object
  extended by java.lang.Enum<StateFlag>
      extended by app.spa.StateFlag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StateFlag>

public enum StateFlag
extends java.lang.Enum<StateFlag>

An enumeration of flags each representing one aspect of the internal state of the SiGMLPlayerApplet's event dispatch thread.


Enum Constant Summary
CHANGING_AVATAR
           
HALTED
           
HALTING
           
HAS_ALL_FRAMES
           
HAS_AVATAR
           
HAS_OPEN_SIGML_PIPE
           
IDLE
           
LOADING_FRAMES
           
PLAYING_SIGML_PIPED
           
PLAYING_SIGML_TEXT
           
PLAYING_SIGML_URL
           
STOPPING_PLAY
           
 
Field Summary
static int COUNT
          The number of state flags in this enumeration.
static StateFlag FIRST
          The initial state flag in this enumeration.
static StateFlag LAST
          The final state flag in this enumeration.
 
Method Summary
static void listAllTags(Logger logger)
          Lists the tags for the state flags in this enumeration, on the given logger.
 char onOffChar(boolean on)
          Returns an on/off tag character for this state flag, as specified by the argument: the "on" tag is this flag's tag character, the "off" tag is an underscore character.
static StateFlag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StateFlag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IDLE

public static final StateFlag IDLE

CHANGING_AVATAR

public static final StateFlag CHANGING_AVATAR

LOADING_FRAMES

public static final StateFlag LOADING_FRAMES

PLAYING_SIGML_URL

public static final StateFlag PLAYING_SIGML_URL

PLAYING_SIGML_TEXT

public static final StateFlag PLAYING_SIGML_TEXT

PLAYING_SIGML_PIPED

public static final StateFlag PLAYING_SIGML_PIPED

STOPPING_PLAY

public static final StateFlag STOPPING_PLAY

HALTING

public static final StateFlag HALTING

HALTED

public static final StateFlag HALTED

HAS_AVATAR

public static final StateFlag HAS_AVATAR

HAS_OPEN_SIGML_PIPE

public static final StateFlag HAS_OPEN_SIGML_PIPE

HAS_ALL_FRAMES

public static final StateFlag HAS_ALL_FRAMES
Field Detail

FIRST

public static final StateFlag FIRST
The initial state flag in this enumeration.


LAST

public static final StateFlag LAST
The final state flag in this enumeration.


COUNT

public static final int COUNT
The number of state flags in this enumeration.

Method Detail

values

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

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

valueOf

public static StateFlag 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

onOffChar

public char onOffChar(boolean on)
Returns an on/off tag character for this state flag, as specified by the argument: the "on" tag is this flag's tag character, the "off" tag is an underscore character.


listAllTags

public static void listAllTags(Logger logger)
Lists the tags for the state flags in this enumeration, on the given logger.