|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.AppsBase
public abstract class AppsBase
Base class for the core of JMRI applications.
This provides a non-GUI base for applications.
Below this is the Apps3 class
which provides basic Swing GUI support.
For an example of using this, see
FacelessApp and comments therein.
There are a series of steps in the configuration:
| Field Summary | |
|---|---|
protected boolean |
configDeferredLoadOK
|
protected boolean |
configOK
|
protected static String |
nameString
|
protected boolean |
preferenceFileExists
|
| Constructor Summary | |
|---|---|
AppsBase()
Create and initialize the application object. |
|
| Method Summary | |
|---|---|
protected void |
addDefaultShutDownTasks()
|
protected void |
createDemoScaffolding()
|
static String |
getConfigFileName()
|
protected JComponent |
getSensorTableDemo()
|
protected static void |
initLog4J()
|
protected void |
installConfigurationManager()
|
protected void |
installManagers()
|
protected void |
installShutDownManager()
|
protected void |
postInit()
Final actions before releasing control of app to user, invoked explicitly after object has been constructed, e.g. in main(). |
static void |
preInit()
Initial actions before frame is created, invoked in the applications main() routine. |
protected void |
setAndLoadPreferenceFile()
|
protected static void |
setConfigFilename(String def,
String[] args)
Set up the configuration file name at startup. |
protected static void |
setJmriSystemProperty(String key,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String nameString
protected boolean configOK
protected boolean configDeferredLoadOK
protected boolean preferenceFileExists
| Constructor Detail |
|---|
public AppsBase()
Expects initialization from preInit() to already be done.
| Method Detail |
|---|
public static void preInit()
protected void createDemoScaffolding()
protected JComponent getSensorTableDemo()
protected void installConfigurationManager()
protected void installManagers()
protected void setAndLoadPreferenceFile()
protected void installShutDownManager()
protected void addDefaultShutDownTasks()
protected void postInit()
protected static void setConfigFilename(String def,
String[] args)
The Configuration File name variable holds the name used to load the configuration file during later startup processing. Applications invoke this method to handle the usual startup hierarchy:
def - Default value if no other is providedargs - Argument array from the main routinepublic static String getConfigFileName()
protected static void setJmriSystemProperty(String key,
String value)
protected static void initLog4J()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||