public abstract class AbstractSwingApplication extends Object implements Application
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
mAppModels
Our map for the models.
|
protected Properties |
mAppProperties
Our properties.
|
APPLICATION_KEY
Constructor and Description |
---|
AbstractSwingApplication()
The constructor creates the properties and the models hashmap.
|
Modifier and Type | Method and Description |
---|---|
void |
doStart(String[] pArgs)
Called to start an application.
|
Map<String,? super Object> |
getAppModel()
Returns the models of the applicaton.
|
Properties |
getProperties()
Get all properties of the application.
|
String |
getProperty(String pKey,
String pDefault)
Get a user property of the application, always returns
a non-null string if pDefault is not null.
|
void |
setProperty(String pKey,
String pValue)
Set a user property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doStop
protected Properties mAppProperties
public AbstractSwingApplication()
public String getProperty(String pKey, String pDefault)
Application
getProperty
in interface Application
pKey
- key of the user propertypDefault
- default that should be used if the key is not knownpublic void setProperty(String pKey, String pValue)
Application
setProperty
in interface Application
pKey
- key of the user propertypValue
- value of the user propertypublic Properties getProperties()
Application
getProperties
in interface Application
public Map<String,? super Object> getAppModel()
Application
getAppModel
in interface Application
public void doStart(String[] pArgs)
Application
doStart
in interface Application
pArgs
- the arguments of the static main entry point.Copyright © 2017 Jürgen Zeller (privat). All rights reserved.