public abstract class AbstractFxApplication extends javafx.application.Application implements Application
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
mAppModels
Our map for the models, never null.
|
protected Properties |
mAppProperties
Our properties, never null.
|
APPLICATION_KEY
Constructor and Description |
---|
AbstractFxApplication() |
Modifier and Type | Method and Description |
---|---|
void |
doStart(String[] pArgs)
Called to start an application.
|
void |
doStop()
Called to stop 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.
|
protected Properties mAppProperties
public String getProperty(String pKey, String pDefault)
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)
setProperty
in interface Application
pKey
- key of the user propertypValue
- value of the user propertypublic Properties getProperties()
getProperties
in interface Application
public Map<String,? super Object> getAppModel()
getAppModel
in interface Application
public void doStart(String[] pArgs)
doStart
in interface Application
pArgs
- the arguments of the static main entry point.public void doStop()
doStop
in interface Application
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.