Mp3dings 
20100427

net.sourceforge.mp3dings
Class Application

java.lang.Object
  extended by de.mospace.lang.MinimalClassLoaderProvider
      extended by de.mospace.lang.DefaultClassLoaderProvider
          extended by net.sourceforge.mp3dings.Application
All Implemented Interfaces:
ClassLoaderProvider, Serializable

public final class Application
extends DefaultClassLoaderProvider

The main class of the mp3dings program. It provides the main(String[] args) method that starts mp3dings as well as methods to access some components and services used by all of the application.

Version:
$Revision: 98 $ ($Date: 2007-11-01 11:17:50 +0100 (Do, 01 Nov 2007) $)
Author:
Moritz Ringler
See Also:
Serialized Form

Field Summary
protected  MainFrame mainFrame
          Frame making up the graphical user interface of the application
 
Fields inherited from class de.mospace.lang.DefaultClassLoaderProvider
serialVersionUID
 
Constructor Summary
Application()
          Starts a new mp3dings application.
 
Method Summary
 void exit(int code)
          Exits the application cleanly.
static void exportSettings(File settings)
          Saves the current mp3dings settings to the specified file.
protected static Locale[] getImplementedLocales()
          Returns the locales that are currently supported by mp3dings
 MainFrame getMainFrame()
          Gets the mainFrame attribute of the Application object
static void importSettings(File settings)
          Description of the Method
static void main(String[] argv)
          Main method invoked to start the application.
protected  void setStatus(String status)
          Displays the specified string in the status bar of the application window.
protected  void setStatus(String status, int timeout)
          Displays the specified string in the status bar of the application window and clears after the specified time.
 
Methods inherited from class de.mospace.lang.DefaultClassLoaderProvider
getClassLoader, getLibraries, getLibraryFiles, getRepositoryRoot, getRepositoryRootDir, isTemporary, registerDirectory, registerLibraries, registerLibrary, registerLibraryDirectories, registerLibraryDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainFrame

protected MainFrame mainFrame
Frame making up the graphical user interface of the application

Constructor Detail

Application

public Application()
Starts a new mp3dings application. It has not been tested whether creating several instances of this class in the same JVM is safe.

Method Detail

main

public static void main(String[] argv)
Main method invoked to start the application. You can optionally specify zip files with settings to import before the application is started. This is used mainly in the installation procedure, but can also be used as a primitive profile mechanism. Note that instances of mp3dings that are already running will also be affected.

It has not been tested whether several instances of mp3dings can safely run inside the same JVM.

Parameters:
argv - one or more zip files with mp3dings settings

setStatus

protected void setStatus(String status)
Displays the specified string in the status bar of the application window.

Parameters:
status - The new status value
See Also:
StatusBar.setStatus(String status)

setStatus

protected void setStatus(String status,
                         int timeout)
Displays the specified string in the status bar of the application window and clears after the specified time.

Parameters:
status - The new status value
timeout - The new status value
See Also:
StatusBar.setStatus(String status, int timeout)

getImplementedLocales

protected static Locale[] getImplementedLocales()
Returns the locales that are currently supported by mp3dings. *

Returns:
the implemented locales

getMainFrame

public MainFrame getMainFrame()
Gets the mainFrame attribute of the Application object

Returns:
The mainFrame value

exit

public void exit(int code)
Exits the application cleanly.

Parameters:
code - an exit code
See Also:
System.exit(int)

importSettings

public static void importSettings(File settings)
                           throws IOException,
                                  InvalidPreferencesFormatException
Description of the Method

Parameters:
settings - Description of the Parameter
Throws:
IOException - Description of the Exception
InvalidPreferencesFormatException

exportSettings

public static void exportSettings(File settings)
                           throws IOException,
                                  BackingStoreException
Saves the current mp3dings settings to the specified file.

Parameters:
settings - the file to save the settings to
Throws:
IOException
BackingStoreException

Mp3dings 
20100427