|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.context.AbstractApplication
net.sf.doolin.gui.app.GUIApplication
public class GUIApplication
GUI application manager.
| Constructor Summary | |
|---|---|
GUIApplication()
Constructor |
|
| Method Summary | ||
|---|---|---|
void |
exit(int code)
Exits the application |
|
|
getBean(Class<T> idClass)
If the bean is not defined in the Spring configuration, searches in the predefined services. |
|
static Class<?> |
getIdClass()
Returns the class that identifies the application |
|
InfoService |
getInfoService()
Gets the information service for the application |
|
Parameters |
getParameters()
Gets the parameter service for this application. |
|
GUIPreferences |
getPreferences()
Gets the preferences for the application |
|
GUIStartup |
getStartup()
Returns the start-up policy |
|
void |
init()
Initialises the defaults services. |
|
protected void |
initDefaultServices()
Initialises the defaults services. |
|
static void |
launchWithArgs(String[] paths,
String[] args)
Launches a GUIApplication on the Swing EDT thread. |
|
protected
|
registerService(Class<T> serviceClass,
T service)
Registers a default service for this application |
|
void |
setStartup(GUIStartup startup)
Sets the start-up policy for this application. |
|
void |
start(String[] arguments)
Delegates to the start-up policy. |
|
| Methods inherited from class net.sf.doolin.context.AbstractApplication |
|---|
getBean, isDefined, isDefined, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GUIApplication()
| Method Detail |
|---|
public static Class<?> getIdClass()
public static void launchWithArgs(String[] paths,
String[] args)
GUIApplication on the Swing EDT thread.
paths - Paths for the application configurationargs - Arguments for the applicationpublic void exit(int code)
code - Exit codepublic <T> T getBean(Class<T> idClass)
getBean in class AbstractApplicationT - Type of the beanidClass - Class as an ID
public InfoService getInfoService()
public Parameters getParameters()
public GUIPreferences getPreferences()
public GUIStartup getStartup()
@PostConstruct public void init()
protected void initDefaultServices()
protected <T> void registerService(Class<T> serviceClass,
T service)
T - Type of serviceserviceClass - Service interfaceservice - Service implementationpublic void setStartup(GUIStartup startup)
startup - Startup policypublic void start(String[] arguments)
arguments - Starting argumentsGUIStartup.start(GUIApplication, String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||