com.bff.musicjukebox.lib
Class JukeboxProperties

java.lang.Object
  extended by com.bff.musicjukebox.lib.JukeboxProperties

public class JukeboxProperties
extends java.lang.Object


Field Summary
static int CLIENT_PLAYER_LEFT
           
static int CLIENT_PLAYER_TOP
           
 
Constructor Summary
JukeboxProperties()
          Creates a new instance of JukeboxProperties
 
Method Summary
 boolean exists()
           
 int getClientType()
           
static org.bff.javampd.MPD getMPD()
           
static org.bff.javampd.monitor.MPDStandAloneMonitor getMPDMonitor()
           
 java.lang.String getMPDPassword()
           
 int getMpdPort()
           
 java.lang.String getMpdServer()
           
static JukeboxMusicPlayer getPlayer()
           
static JukeboxPlaylist getPlaylist()
           
static SongDAO getSongDAO()
           
static java.lang.String getVersion()
           
static boolean isMinTray()
           
 boolean isShowGuitarPanel()
           
static boolean isShowTableImage()
           
static void kill()
           
static void resetMPD()
           
 boolean saveSettings()
           
 boolean saveSettings(int clientType, java.lang.String mpdServer, java.lang.String password, int mpdPort, boolean showGuitarPanel, boolean showTableImage, boolean minToTray)
           
 void setClientType(int clientType)
           
static void setMinTray(boolean aMinTray)
           
 void setMPDPassword(java.lang.String password)
           
 void setMpdPort(int mpdPort)
           
 void setMpdServer(java.lang.String mpdServer)
           
 void setShowGuitarPanel(boolean showGuitarPanel)
           
static void setShowTableImage(boolean aShowTableImage)
           
static boolean showGuitarPanel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_PLAYER_LEFT

public static final int CLIENT_PLAYER_LEFT
See Also:
Constant Field Values

CLIENT_PLAYER_TOP

public static final int CLIENT_PLAYER_TOP
See Also:
Constant Field Values
Constructor Detail

JukeboxProperties

public JukeboxProperties()
Creates a new instance of JukeboxProperties

Method Detail

isMinTray

public static boolean isMinTray()
Returns:
the minTray

setMinTray

public static void setMinTray(boolean aMinTray)
Parameters:
aMinTray - the minTray to set

exists

public boolean exists()

saveSettings

public boolean saveSettings()

saveSettings

public boolean saveSettings(int clientType,
                            java.lang.String mpdServer,
                            java.lang.String password,
                            int mpdPort,
                            boolean showGuitarPanel,
                            boolean showTableImage,
                            boolean minToTray)

getMpdServer

public java.lang.String getMpdServer()

setMpdServer

public void setMpdServer(java.lang.String mpdServer)

getMpdPort

public int getMpdPort()

setMpdPort

public void setMpdPort(int mpdPort)

getPlaylist

public static JukeboxPlaylist getPlaylist()
                                   throws PlaylistException
Throws:
PlaylistException

getPlayer

public static JukeboxMusicPlayer getPlayer()
                                    throws PlayerException
Throws:
PlayerException

getMPD

public static org.bff.javampd.MPD getMPD()
                                  throws org.bff.javampd.exception.MPDConnectionException,
                                         java.net.UnknownHostException
Throws:
org.bff.javampd.exception.MPDConnectionException
java.net.UnknownHostException

getMPDMonitor

public static org.bff.javampd.monitor.MPDStandAloneMonitor getMPDMonitor()
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getSongDAO

public static SongDAO getSongDAO()
                          throws java.lang.Exception
Throws:
java.lang.Exception

showGuitarPanel

public static boolean showGuitarPanel()

kill

public static final void kill()

resetMPD

public static void resetMPD()

getVersion

public static java.lang.String getVersion()

getClientType

public int getClientType()

setClientType

public void setClientType(int clientType)

isShowGuitarPanel

public boolean isShowGuitarPanel()

setShowGuitarPanel

public void setShowGuitarPanel(boolean showGuitarPanel)

getMPDPassword

public java.lang.String getMPDPassword()

setMPDPassword

public void setMPDPassword(java.lang.String password)

isShowTableImage

public static boolean isShowTableImage()

setShowTableImage

public static void setShowTableImage(boolean aShowTableImage)