sk.baka.ambient
Enum ConfigurationBean.TrackChangeNotifEnum

java.lang.Object
  extended by java.lang.Enum<ConfigurationBean.TrackChangeNotifEnum>
      extended by sk.baka.ambient.ConfigurationBean.TrackChangeNotifEnum
All Implemented Interfaces:
Serializable, Comparable<ConfigurationBean.TrackChangeNotifEnum>
Enclosing class:
ConfigurationBean

public static enum ConfigurationBean.TrackChangeNotifEnum
extends Enum<ConfigurationBean.TrackChangeNotifEnum>

A notification to show when the current playing track is changed.

Author:
Martin Vysny

Enum Constant Summary
Long
          Detailed info.
None
          No notification.
Short
          A quick info.
 
Field Summary
 int caption
          Caption text.
 int viewDuration
          View duration, intended for the Toast.setDuration(int) method.
 
Method Summary
static List<CharSequence> getCaptions(Context context)
          Returns captions list.
static ConfigurationBean.TrackChangeNotifEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationBean.TrackChangeNotifEnum[] 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

None

public static final ConfigurationBean.TrackChangeNotifEnum None
No notification.


Short

public static final ConfigurationBean.TrackChangeNotifEnum Short
A quick info.


Long

public static final ConfigurationBean.TrackChangeNotifEnum Long
Detailed info.

Field Detail

caption

public final int caption
Caption text.


viewDuration

public final int viewDuration
View duration, intended for the Toast.setDuration(int) method.

Method Detail

values

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

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

valueOf

public static ConfigurationBean.TrackChangeNotifEnum 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

getCaptions

public static List<CharSequence> getCaptions(Context context)
Returns captions list.

Parameters:
context - string resolver
Returns:
list of strings - captions


Copyright © 2007-2008. All Rights Reserved.