sk.baka.ambient
Enum ActionsEnum

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

public enum ActionsEnum
extends Enum<ActionsEnum>

Enumerates all actions that can be taken.

Author:
Martin Vysny

Enum Constant Summary
About
          Shows the About dialog.
AmpacheConfigureClient
          Configure the Ampache connection.
AmpacheStartServer
          Starts the embedded Ampache server.
AmpacheStopServer
          Stops the embedded Ampache server.
AmpacheSynchronize
          Synchronize tracks with the Ampache server.
Back
          Navigates back.
BuyAlbum
          Opens the "buy" link.
CollectionYear
          Flips the visibility of "filtering by a year" in the collection.
Configure
          Shows configuration window that configures Ambient.
DeleteSelected
          Deletes selected files.
GoOffline
          Goes offline.
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
          Activates dynamic playlist.
PlaylistManagement
          Opens the playlist management menu - you can sort or shuffle the playlist, add or remove tracks, save and open playlists.
PlaylistSave
          Saves current playlist.
PlaylistShuffle
          Shuffles the playlist.
PlaylistSortByAlbums
          Sorts the playlist by album ordering, see CollectionUtils.ALBUM_ORDER_COMPARATOR for details.
PlaylistStatic
          Activates static playlist.
QueueClear
          Clears the track queue.
QueueTracks
          Queues selected tracks.
Quit
          Quits (closes) the application.
RandomAlbums
          Play random albums.
RandomAlbumsPlaylist
          Play random albums and tracks in the albums.
RandomAlbumsTracks
          Play random albums and tracks in the albums.
RandomNo
          Sets normal play order.
RandomTracks
          Play random tracks.
RefreshKaraoke
          Deletes karaoke for current track.
RepeatAlbum
          Repeats an album.
RepeatNothing
          Does not repeat anything.
RepeatPlaylist
          Repeats playlist.
RepeatTrack
          Repeat single track over and over.
ShoutcastNameTrackSwitch
          Switch between the radio name/current track display.
ShowAmpache
          Shows the Ampache browser.
ShowArtistPage
          Shows the artist page.
ShowCollection
          Opens or hides the collection browser.
ShowContext
          Opens or hides the context view.
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
          Shows the shoutcast view.
ShowStatistics
          Shows the statistics.
ShowWiki
          Shows a wiki page about selected artist.
 
Field Summary
 int caption
          The caption resource.
 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.
static ActionsEnum valueOf(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
Opens the playlist management menu - you can sort or shuffle the playlist, add or remove tracks, save and open playlists.


ShowCollection

public static final ActionsEnum ShowCollection
Opens or hides the collection browser.


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
Opens or hides the context view.


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
Goes offline.


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
Sorts the playlist by album ordering, see CollectionUtils.ALBUM_ORDER_COMPARATOR for details.


PlaylistSave

public static final ActionsEnum PlaylistSave
Saves current playlist.


RandomNo

public static final ActionsEnum RandomNo
Sets normal play order.


RandomTracks

public static final ActionsEnum RandomTracks
Play random tracks.


RandomAlbums

public static final ActionsEnum RandomAlbums
Play random albums.


RandomAlbumsTracks

public static final ActionsEnum RandomAlbumsTracks
Play random albums and tracks in the albums.


RandomAlbumsPlaylist

public static final ActionsEnum RandomAlbumsPlaylist
Play random albums and tracks in the albums.


RepeatNothing

public static final ActionsEnum RepeatNothing
Does not repeat anything.


RepeatTrack

public static final ActionsEnum RepeatTrack
Repeat single track over and over.


RepeatAlbum

public static final ActionsEnum RepeatAlbum
Repeats an album.


RepeatPlaylist

public static final ActionsEnum RepeatPlaylist
Repeats playlist.


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
Activates static playlist.


PlaylistDynamic

public static final ActionsEnum PlaylistDynamic
Activates dynamic playlist.


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
Flips the visibility of "filtering by a year" in the collection.


ShowLyrics

public static final ActionsEnum ShowLyrics
Shows the track lyrics.


ShowShoutcast

public static final ActionsEnum ShowShoutcast
Shows the shoutcast view.


ShowAmpache

public static final ActionsEnum ShowAmpache
Shows the Ampache browser.


AmpacheConfigureClient

public static final ActionsEnum AmpacheConfigureClient
Configure the Ampache connection.


AmpacheSynchronize

public static final ActionsEnum AmpacheSynchronize
Synchronize tracks with the Ampache server.


ShoutcastNameTrackSwitch

public static final ActionsEnum ShoutcastNameTrackSwitch
Switch between the radio name/current track display.


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.


GoToRoot

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


DeleteSelected

public static final ActionsEnum DeleteSelected
Deletes selected files.

Field Detail

icon

public final int icon
The icon resource of the action.


caption

public final int caption
The caption resource.

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(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

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


Copyright © 2007-2008. All Rights Reserved.