net.chaosserver.jtunes.swingui
Class SwingJTunes

java.lang.Object
  |
  +--net.chaosserver.jtunes.swingui.SwingJTunes
All Implemented Interfaces:
JTunesApplicationEventListener

public class SwingJTunes
extends Object
implements JTunesApplicationEventListener

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

applicationFrame

protected JFrame applicationFrame
Holds the application frame.


logoPanel

protected LogoPanel logoPanel
Holds the application logoPanel which is displayed when no playlist is loaded.


playList

protected PlayList playList
Holds the currently loaded playlist in the frame.

Constructor Detail

SwingJTunes

public SwingJTunes()
Method Detail

eventPerformed

public void eventPerformed(JTunesApplicationEvent evt)
Listens for main application events and routes to various methods in the class.

Specified by:
eventPerformed in interface JTunesApplicationEventListener
Parameters:
evt - application event being fired

start

public void start()
Starts up the Swing interface.


openFile

public void openFile()
Triggers a display to open a playlist.


displayPlayList

public void displayPlayList()
Displays the loaded playlist.


exportPlayList

public void exportPlayList()
Triggers a dialog to export the current playlist.


closePlayList

public void closePlayList()
Closes the active playlist and places the logo panel back.


showExportProgress

public void showExportProgress(StartExportEvent startExportEvent)
Displays a modal dialog with progress of the export.

Parameters:
startExportEvent - the startExportEvent to show in the progress box

showLicense

public void showLicense()
Shows the license to the end user.


stop

public void stop()
Stops the application.


getApplicationTitle

public String getApplicationTitle()
Generates the application title based on the package information in the manifest file.

Returns:
the application title.


Copyright ?? 20030801