sk.baka.ambient
Enum ActionsEnum

java.lang.Object
  extended by java.lang.Enum<ActionsEnum>
      extended by sk.baka.ambient.ActionsEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ActionsEnum>

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

Enumerates all actions that can be taken.

Author:
Martin Vysny

Enum Constant Summary
About
          Shows the About dialog.
AmpacheConfigureClient
          R.string.AmpacheConfigureClientTip
AmpacheDownloadSelected
          Download selected files from the ampache server.
AmpacheStartServer
          Starts the embedded Ampache server.
AmpacheStopServer
          Stops the embedded Ampache server.
AmpacheSynchronize
          R.string.AmpacheSynchronizeTip
Back
          Navigates back.
BuyAlbum
          Opens the "buy" link.
CollectionYear
          R.string.CollectionYearTip
Configure
          Shows configuration window that configures Ambient.
DeleteSelected
          Deletes selected files.
DpadSearch
          R.string.dpadSearchDesc
GoOffline
          R.string.GoOfflineTip
GoOnline
          Goes online.
GoToRoot
          Positions the file browser back to the root directory.
MagnatuneRescan
          Rescans the magnatune collection.
Minimize
          Hides Ambient and minimizes it.
PlaybackNext
          Moves to the next song in the playlist.
PlaybackPause
          Pauses the playback.
PlaybackPlay
          Starts the playback.
PlaybackPrevious
          Moves to the previous song in the playlist.
PlaybackStop
          Stops the playback.
PlaylistClear
          Clears the playlist.
PlaylistDynamic
          R.string.PlaylistDynamicTip
PlaylistManagement
          R.string.playlistMgmtTip
PlaylistSave
          Saves current playlist.
PlaylistShuffle
          Shuffles the playlist.
PlaylistSortByAlbums
          R.string.PlaylistSortByAlbumsTip
PlaylistStatic
          R.string.PlaylistStaticTip
QueueClear
          Clears the track queue.
QueueTracks
          Queues selected tracks.
Quit
          Quits (closes) the application.
RandomAlbums
          R.string.RandomAlbumsTip
RandomAlbumsPlaylist
          R.string.RandomAlbumsPlaylistTip
RandomAlbumsTracks
          R.string.RandomAlbumsTracksTip
RandomNo
          R.string.RandomNoTip
RandomTracks
          R.string.RandomTracksTip
Refresh
          Performs a refresh.
RefreshKaraoke
          Deletes karaoke for current track.
RepeatAlbum
          R.string.RepeatAlbumTip
RepeatNothing
          Does not repeat anything.
RepeatPlaylist
          R.string.RepeatPlaylistTip
RepeatTrack
          R.string.RepeatTrackTip
RepopulatePlaylist
          Stops the embedded Ampache server.
ResizeKeypad
          Resizes the task windows.
ShoutcastNameTrackSwitch
          R.string.ShoutcastNameTrackSwitchTip
ShowAmpache
          R.string.ShowAmpacheTip
ShowArtistPage
          Shows the artist page.
ShowCollection
          R.string.ShowCollectionTip
ShowContext
          R.string.ShowContextTip
ShowFileBrowser
          Opens or hides the file browser.
ShowKaraoke
          Shows or hides karaoke for current track.
ShowLicense
          Shows the track's license.
ShowLyrics
          Shows the track lyrics.
ShowMagnatune
          Opens or hides the Magnatune view.
ShowPlayer
          Opens or hides the player.
ShowShoutcast
          R.string.ShowShoutcastTip
ShowStatistics
          Shows the statistics.
ShowWiki
          Shows a wiki page about selected artist.
 
Field Summary
 int caption
          The caption resource.
 int description
          The action description, displayed when the activity is activated for the first time.
 int icon
          The icon resource of the action.
 
Method Summary
static ActionsEnum getAction(Random random)
          Returns action for given random constant.
static ActionsEnum getAction(Repeat repeat)
          Returns action for given random constant.
 Random getRandom()
          Returns the "Random" value of this action or null if this action is not a set-random action.
 Repeat getRepeat()
          Returns the repeat value of this action or null if this action is not a set-repeat action.
static ActionsEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ActionsEnum[] 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

PlaylistManagement

public static final ActionsEnum PlaylistManagement
R.string.playlistMgmtTip


ShowCollection

public static final ActionsEnum ShowCollection
R.string.ShowCollectionTip


ShowFileBrowser

public static final ActionsEnum ShowFileBrowser
Opens or hides the file browser.


ShowPlayer

public static final ActionsEnum ShowPlayer
Opens or hides the player.


ShowContext

public static final ActionsEnum ShowContext
R.string.ShowContextTip


ShowKaraoke

public static final ActionsEnum ShowKaraoke
Shows or hides karaoke for current track.


RefreshKaraoke

public static final ActionsEnum RefreshKaraoke
Deletes karaoke for current track.


ShowMagnatune

public static final ActionsEnum ShowMagnatune
Opens or hides the Magnatune view.


Back

public static final ActionsEnum Back
Navigates back.


GoOffline

public static final ActionsEnum GoOffline
R.string.GoOfflineTip


GoOnline

public static final ActionsEnum GoOnline
Goes online.


Configure

public static final ActionsEnum Configure
Shows configuration window that configures Ambient.


PlaylistClear

public static final ActionsEnum PlaylistClear
Clears the playlist.


PlaylistShuffle

public static final ActionsEnum PlaylistShuffle
Shuffles the playlist.


PlaylistSortByAlbums

public static final ActionsEnum PlaylistSortByAlbums
R.string.PlaylistSortByAlbumsTip


PlaylistSave

public static final ActionsEnum PlaylistSave
Saves current playlist.


RandomNo

public static final ActionsEnum RandomNo
R.string.RandomNoTip


RandomTracks

public static final ActionsEnum RandomTracks
R.string.RandomTracksTip


RandomAlbums

public static final ActionsEnum RandomAlbums
R.string.RandomAlbumsTip


RandomAlbumsTracks

public static final ActionsEnum RandomAlbumsTracks
R.string.RandomAlbumsTracksTip


RandomAlbumsPlaylist

public static final ActionsEnum RandomAlbumsPlaylist
R.string.RandomAlbumsPlaylistTip


RepeatNothing

public static final ActionsEnum RepeatNothing
Does not repeat anything.


RepeatTrack

public static final ActionsEnum RepeatTrack
R.string.RepeatTrackTip


RepeatAlbum

public static final ActionsEnum RepeatAlbum
R.string.RepeatAlbumTip


RepeatPlaylist

public static final ActionsEnum RepeatPlaylist
R.string.RepeatPlaylistTip


QueueTracks

public static final ActionsEnum QueueTracks
Queues selected tracks.


QueueClear

public static final ActionsEnum QueueClear
Clears the track queue.


PlaybackNext

public static final ActionsEnum PlaybackNext
Moves to the next song in the playlist.


PlaybackPrevious

public static final ActionsEnum PlaybackPrevious
Moves to the previous song in the playlist.


PlaybackStop

public static final ActionsEnum PlaybackStop
Stops the playback.


PlaybackPlay

public static final ActionsEnum PlaybackPlay
Starts the playback.


PlaybackPause

public static final ActionsEnum PlaybackPause
Pauses the playback.


ShowStatistics

public static final ActionsEnum ShowStatistics
Shows the statistics.


Minimize

public static final ActionsEnum Minimize
Hides Ambient and minimizes it.


PlaylistStatic

public static final ActionsEnum PlaylistStatic
R.string.PlaylistStaticTip


PlaylistDynamic

public static final ActionsEnum PlaylistDynamic
R.string.PlaylistDynamicTip


Quit

public static final ActionsEnum Quit
Quits (closes) the application.


MagnatuneRescan

public static final ActionsEnum MagnatuneRescan
Rescans the magnatune collection.


ShowLicense

public static final ActionsEnum ShowLicense
Shows the track's license.


BuyAlbum

public static final ActionsEnum BuyAlbum
Opens the "buy" link.


ShowArtistPage

public static final ActionsEnum ShowArtistPage
Shows the artist page.


CollectionYear

public static final ActionsEnum CollectionYear
R.string.CollectionYearTip


ShowLyrics

public static final ActionsEnum ShowLyrics
Shows the track lyrics.


ShowShoutcast

public static final ActionsEnum ShowShoutcast
R.string.ShowShoutcastTip


ShowAmpache

public static final ActionsEnum ShowAmpache
R.string.ShowAmpacheTip


AmpacheConfigureClient

public static final ActionsEnum AmpacheConfigureClient
R.string.AmpacheConfigureClientTip


AmpacheSynchronize

public static final ActionsEnum AmpacheSynchronize
R.string.AmpacheSynchronizeTip


ShoutcastNameTrackSwitch

public static final ActionsEnum ShoutcastNameTrackSwitch
R.string.ShoutcastNameTrackSwitchTip


About

public static final ActionsEnum About
Shows the About dialog.


ShowWiki

public static final ActionsEnum ShowWiki
Shows a wiki page about selected artist.


AmpacheStartServer

public static final ActionsEnum AmpacheStartServer
Starts the embedded Ampache server. Local action.


AmpacheStopServer

public static final ActionsEnum AmpacheStopServer
Stops the embedded Ampache server. Local action.


RepopulatePlaylist

public static final ActionsEnum RepopulatePlaylist
Stops the embedded Ampache server. Local action.


GoToRoot

public static final ActionsEnum GoToRoot
Positions the file browser back to the root directory.


DeleteSelected

public static final ActionsEnum DeleteSelected
Deletes selected files.


AmpacheDownloadSelected

public static final ActionsEnum AmpacheDownloadSelected
Download selected files from the ampache server.


Refresh

public static final ActionsEnum Refresh
Performs a refresh.


ResizeKeypad

public static final ActionsEnum ResizeKeypad
Resizes the task windows.


DpadSearch

public static final ActionsEnum DpadSearch
R.string.dpadSearchDesc

Field Detail

icon

public final int icon
The icon resource of the action.


caption

public final int caption
The caption resource.


description

public final int description
The action description, displayed when the activity is activated for the first time. If -1 then no description is available.

Method Detail

values

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

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

valueOf

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

getAction

public static ActionsEnum getAction(Random random)
Returns action for given random constant.

Parameters:
random - the random constant, must not be null.
Returns:
non-null action

getAction

public static ActionsEnum getAction(Repeat repeat)
Returns action for given random constant.

Parameters:
repeat - the random constant, must not be null.
Returns:
non-null action

getRepeat

public Repeat getRepeat()
Returns the repeat value of this action or null if this action is not a set-repeat action.

Returns:
the repeat value or null.

getRandom

public Random getRandom()
Returns the "Random" value of this action or null if this action is not a set-random action.

Returns:
the Random value or null.


Copyright © 2007-2009. All Rights Reserved.