Class FWApplication

java.lang.Object
net.simplace.core.FWApplication

public abstract class FWApplication extends Object
Abstract base-class for applications.
Author:
Andreas Enders
  • 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

      public static ClassLoader 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

      public static FWMainFrame getMainFrame()
      Returns the main application window.
      Returns:
      main Frame