apps.gui3
Class Apps3

java.lang.Object
  extended by apps.AppsBase
      extended by apps.gui3.Apps3
Direct Known Subclasses:
DecoderPro3, MDI, Paned

public abstract class Apps3
extends AppsBase

Base class for GUI3 JMRI applications.

This is a complete re-implementation of the apps.Apps support for JMRI applications.

Each using application provides it's own main() method. See e.g. apps.gui3.demo3.Demo3 for an example.

There are a large number of missing features marked with TODO in comments including code from the earlier implementation.

Author:
Bob Jacobsen Copyright 2009, 2010

Field Summary
protected  JmriJFrame mainFrame
           
 
Fields inherited from class apps.AppsBase
configDeferredLoadOK, configOK, preferenceFileExists
 
Constructor Summary
Apps3()
          Create and initialize the application object.
 
Method Summary
protected  void addToActionModel()
           
static JComponent buttonSpace()
          Provide access to a place where applications can expect the configurion code to build run-time buttons.
protected  void createDemoScaffolding()
           
protected abstract  void createMainFrame()
           
protected  void displayMainFrame(Dimension d)
           
protected abstract  ResourceBundle getActionModelResourceBundle()
           
protected  JComponent getSensorTableDemo()
           
protected  void initializeHelpSystem()
           
protected  void postInit()
          Final actions before releasing control of app to user
static void preInit()
          Initial actions before frame is created, invoked in the applications main() routine.
protected static void setApplication(String name)
           
protected static void setButtonSpace()
          For compatability with adding in buttons to the toolbar using the existing createbuttonmodel
protected  void setFloating(JToolBar toolBar)
          Set a toolbar to be initially floating.
protected static void splash(boolean show)
           
protected static void splash(boolean show, boolean debug)
           
protected static JPanel splashDebugMsg()
           
protected static void startupDebug()
           
static String startupInfo(String program)
           
 
Methods inherited from class apps.AppsBase
addDefaultShutDownTasks, getConfigFileName, initLog4J, installConfigurationManager, installManagers, installShutDownManager, setAndLoadPreferenceFile, setConfigFilename, setJmriSystemProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainFrame

protected JmriJFrame mainFrame
Constructor Detail

Apps3

public Apps3()
Create and initialize the application object.

Expects initialization from preInit() to already be done.

Method Detail

preInit

public static void preInit()
Initial actions before frame is created, invoked in the applications main() routine.


setButtonSpace

protected static void setButtonSpace()
For compatability with adding in buttons to the toolbar using the existing createbuttonmodel


buttonSpace

public static JComponent buttonSpace()
Provide access to a place where applications can expect the configurion code to build run-time buttons.

Returns:
null if no such space exists
See Also:
CreateButtonPanel

initializeHelpSystem

protected void initializeHelpSystem()

createDemoScaffolding

protected void createDemoScaffolding()
Overrides:
createDemoScaffolding in class AppsBase

getSensorTableDemo

protected JComponent getSensorTableDemo()
Overrides:
getSensorTableDemo in class AppsBase

createMainFrame

protected abstract void createMainFrame()

getActionModelResourceBundle

protected abstract ResourceBundle getActionModelResourceBundle()

addToActionModel

protected void addToActionModel()

setFloating

protected void setFloating(JToolBar toolBar)
Set a toolbar to be initially floating. This doesn't quite work right.


displayMainFrame

protected void displayMainFrame(Dimension d)

postInit

protected void postInit()
Final actions before releasing control of app to user

Overrides:
postInit in class AppsBase

splash

protected static void splash(boolean show)

splash

protected static void splash(boolean show,
                             boolean debug)

splashDebugMsg

protected static JPanel splashDebugMsg()

startupDebug

protected static void startupDebug()

startupInfo

public static String startupInfo(String program)

setApplication

protected static void setApplication(String name)


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads