|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.AppsBase
apps.gui3.Apps3
public abstract class Apps3
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.
| 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 |
|---|
protected JmriJFrame mainFrame
| Constructor Detail |
|---|
public Apps3()
Expects initialization from preInit() to already be done.
| Method Detail |
|---|
public static void preInit()
protected static void setButtonSpace()
public static JComponent buttonSpace()
CreateButtonPanelprotected void initializeHelpSystem()
protected void createDemoScaffolding()
createDemoScaffolding in class AppsBaseprotected JComponent getSensorTableDemo()
getSensorTableDemo in class AppsBaseprotected abstract void createMainFrame()
protected abstract ResourceBundle getActionModelResourceBundle()
protected void addToActionModel()
protected void setFloating(JToolBar toolBar)
protected void displayMainFrame(Dimension d)
protected void postInit()
postInit in class AppsBaseprotected static void splash(boolean show)
protected static void splash(boolean show,
boolean debug)
protected static JPanel splashDebugMsg()
protected static void startupDebug()
public static String startupInfo(String program)
protected static void setApplication(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||