|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.chaosserver.jtunes.swingui.SwingJTunes
This is the main application class for the SwingUI.
Nested Class Summary | |
protected class |
SwingJTunes.WindowCloser
Basic adapter that listens for window close events and stops the application. |
Field Summary | |
protected JFrame |
applicationFrame
Holds the application frame. |
protected LogoPanel |
logoPanel
Holds the application logoPanel which is displayed when no playlist is loaded. |
protected PlayList |
playList
Holds the currently loaded playlist in the frame. |
Constructor Summary | |
SwingJTunes()
|
Method Summary | |
void |
closePlayList()
Closes the active playlist and places the logo panel back. |
void |
displayPlayList()
Displays the loaded playlist. |
void |
eventPerformed(JTunesApplicationEvent evt)
Listens for main application events and routes to various methods in the class. |
void |
exportPlayList()
Triggers a dialog to export the current playlist. |
String |
getApplicationTitle()
Generates the application title based on the package information in the manifest file. |
void |
openFile()
Triggers a display to open a playlist. |
void |
showExportProgress(StartExportEvent startExportEvent)
Displays a modal dialog with progress of the export. |
void |
showLicense()
Shows the license to the end user. |
void |
start()
Starts up the Swing interface. |
void |
stop()
Stops the application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JFrame applicationFrame
protected LogoPanel logoPanel
protected PlayList playList
Constructor Detail |
public SwingJTunes()
Method Detail |
public void eventPerformed(JTunesApplicationEvent evt)
eventPerformed
in interface JTunesApplicationEventListener
evt
- application event being firedpublic void start()
public void openFile()
public void displayPlayList()
public void exportPlayList()
public void closePlayList()
public void showExportProgress(StartExportEvent startExportEvent)
startExportEvent
- the startExportEvent to show in the progress boxpublic void showLicense()
public void stop()
public String getApplicationTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |