Class Main
java.lang.Object
de.klassenserver7b.danceinterpreter.Main
- Author:
- K7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AppModesprivate ConfigWindowprivate DanceInterpreterstatic booleanstatic booleanstatic Mainprivate final org.slf4j.Loggerprivate Threadprivate SongWindowServerprivate SpotifyInteractionsprivate TrayIcon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AppModesse.michaelthelin.spotify.SpotifyApiprotected booleanprotected voidbooleanisWinOS()private booleanload()static voidvoidonShutdown(AppModes appMode) protected voidstartShutdownT(AppModes appMode)
-
Field Details
-
Instance
-
exit
public static boolean exit -
errordetected
public static boolean errordetected -
spotify
-
danceInterpreter
-
cfgWindow
-
songWindowServer
-
appMode
-
shutdownT
-
log
private final org.slf4j.Logger log -
trayIcon
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
- Parameters:
args-
-
load
private boolean load()- Returns:
-
askForAppMode
- Returns:
-
initalizeUILayout
protected boolean initalizeUILayout()- Returns:
-
initSystemTray
protected void initSystemTray() -
startShutdownT
- Parameters:
appMode-
-
onShutdown
- Parameters:
appMode-
-
isWinOS
public boolean isWinOS() -
getHomeDir
-
getAppMode
- Returns:
-
getSpotifyAPI
public se.michaelthelin.spotify.SpotifyApi getSpotifyAPI()- Returns:
-
getDanceInterpreter
- Returns:
-
getConfigWindow
- Returns:
-
getSongWindowServer
- Returns:
-
getTrayIcon
- Returns:
- the trayIcon
-