Package net.simplace.core
Class FWApplication
java.lang.Object
net.simplace.core.FWApplication
Abstract base-class for applications.
- Author:
- Andreas Enders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is a fix for a Webstart bug - see: http://forum.java.sun.com/thread.jspa?static ClassLoader
This method has to be implemented as a workaround for the known problem with webstart, that the class loader is set to null, if the console is deactivated.static FWMainFrame
Returns the main application window.void
performDefaultMainActions
(String aSoftwareType, String aConfigurationLayoutProvider, boolean aStartApplication) abstract void
method that has to be implemented by real application.static void
Exits application if user confirms shutdown.static void
shutdown()
Exits application.
-
Constructor Details
-
FWApplication
public FWApplication()Creates the instance without any options
-
-
Method Details
-
performMain
public abstract void performMain()method that has to be implemented by real application. This is called while starting application for initializing applicationspecific things. While implementing make shure to call 'performDefaultMainAcions' -
getInstanceClassLoader
This method has to be implemented as a workaround for the known problem with webstart, that the class loader is set to null, if the console is deactivated.- Returns:
- this class' class loader
-
performDefaultMainActions
public void performDefaultMainActions(String aSoftwareType, String aConfigurationLayoutProvider, boolean aStartApplication) - Parameters:
aSoftwareType
-aConfigurationLayoutProvider
-aStartApplication
- has to be called in performMain Method of implementation
-
fixWebStartClassLoaderIssue
protected void fixWebStartClassLoaderIssue()This method is a fix for a Webstart bug - see: http://forum.java.sun.com/thread.jspa?forumID=38&threadID=301640 -
requestShutdown
public static void requestShutdown()Exits application if user confirms shutdown. -
shutdown
public static void shutdown()Exits application. -
getMainFrame
Returns the main application window.- Returns:
- main Frame
-