com.bramosystems.oss.player.core.event.client
Enum PlayStateEvent.State

java.lang.Object
  extended by java.lang.Enum<PlayStateEvent.State>
      extended by com.bramosystems.oss.player.core.event.client.PlayStateEvent.State
All Implemented Interfaces:
Serializable, Comparable<PlayStateEvent.State>
Enclosing class:
PlayStateEvent

public static enum PlayStateEvent.State
extends Enum<PlayStateEvent.State>

An enum of playback states


Enum Constant Summary
Finished
          Media playback has finished
Paused
          Media playback is currently paused
Started
          Media playback has started
Stopped
          Media playback is currently stopped
 
Method Summary
static PlayStateEvent.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PlayStateEvent.State[] 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

Started

public static final PlayStateEvent.State Started
Media playback has started


Finished

public static final PlayStateEvent.State Finished
Media playback has finished


Paused

public static final PlayStateEvent.State Paused
Media playback is currently paused


Stopped

public static final PlayStateEvent.State Stopped
Media playback is currently stopped

Method Detail

values

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

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

valueOf

public static PlayStateEvent.State 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


Copyright © 2009-2011. All Rights Reserved.