sk.baka.ambient
Enum ConfigurationBean.TrackChangeNotifLocationEnum

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

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

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

Author:
Martin Vysny

Enum Constant Summary
Bottom
          Show the notification in the bottom of the screen.
Center
          Center the notification
Top
          Location: top
 
Field Summary
 int caption
          Caption text.
 int gravity
          The gravity, intended for the Toast.setGravity(int, int, int) method.
 
Method Summary
static List<CharSequence> getCaptions(Context context)
          Returns captions list.
static ConfigurationBean.TrackChangeNotifLocationEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationBean.TrackChangeNotifLocationEnum[] 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

Top

public static final ConfigurationBean.TrackChangeNotifLocationEnum Top
Location: top


Center

public static final ConfigurationBean.TrackChangeNotifLocationEnum Center
Center the notification


Bottom

public static final ConfigurationBean.TrackChangeNotifLocationEnum Bottom
Show the notification in the bottom of the screen.

Field Detail

caption

public final int caption
Caption text.


gravity

public final int gravity
The gravity, intended for the Toast.setGravity(int, int, int) method.

Method Detail

values

public static ConfigurationBean.TrackChangeNotifLocationEnum[] 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.TrackChangeNotifLocationEnum c : ConfigurationBean.TrackChangeNotifLocationEnum.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.TrackChangeNotifLocationEnum 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.