|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdesktop.application.AbstractBean org.jdesktop.application.Application org.jdesktop.application.SingleFrameApplication ch.elca.el4j.services.gui.swing.GUIApplication
public abstract class GUIApplication
Parent class for GUI applications. (For MDI applications refer to
MDIApplication
)
Additional features:
Exceptions
and
Handler
ActionsContext
which allows to spread Actions over several classes
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.application.Application |
---|
org.jdesktop.application.Application.ExitListener |
Field Summary | |
---|---|
protected ActionsContext |
actionsContext
The Actions context for resolving action names. |
protected GenericConfig |
config
The configuration. |
protected ApplicationContext |
springContext
The Spring context. |
Constructor Summary | |
---|---|
GUIApplication()
|
Method Summary | ||
---|---|---|
Action |
getAction(Object object,
String actionName)
Returns the action object for a specific object and action name. |
|
ActionsContext |
getActionsContext()
|
|
GenericConfig |
getConfig()
|
|
static GUIApplication |
getInstance()
|
|
ApplicationContext |
getSpringContext()
|
|
String |
getString(String id)
Returns the string for a specific resource id. |
|
static
|
launch(Class<T> applicationClass,
String[] args,
ModuleApplicationContextConfiguration contextConfig)
Launch the application and do some adaptations for Spring. |
|
void |
setConfig(GenericConfig config)
|
|
void |
setSpringContext(ApplicationContext springContext)
Sets the Spring context. |
|
void |
show(ApplicationFrame frame)
Show a frame. |
|
void |
show(JComponent component)
Show a nested component. |
|
void |
show(String beanName)
Show a component which should be created by Spring. |
|
void |
showMain()
Show the main frame. |
|
void |
showMain(JComponent component)
Show the main frame. |
|
void |
showMain(JFrame frame)
Show the main frame. |
|
protected void |
shutdown()
|
Methods inherited from class org.jdesktop.application.SingleFrameApplication |
---|
configureWindow, getMainFrame, getMainView, setMainFrame, show, show, show |
Methods inherited from class org.jdesktop.application.Application |
---|
addExitListener, create, end, exit, exit, getContext, getExitListeners, getInstance, hide, initialize, launch, quit, ready, removeExitListener, setInstance, startup, waitForReady |
Methods inherited from class org.jdesktop.application.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ApplicationContext springContext
protected ActionsContext actionsContext
protected GenericConfig config
Constructor Detail |
---|
public GUIApplication()
Method Detail |
---|
public ApplicationContext getSpringContext()
public void setSpringContext(ApplicationContext springContext)
springContext
- the new Spring contextpublic GenericConfig getConfig()
public void setConfig(GenericConfig config)
config
- the configuration to setpublic static <T extends GUIApplication> void launch(Class<T> applicationClass, String[] args, ModuleApplicationContextConfiguration contextConfig)
applicationClass
- the application class to launchargs
- command line argumentscontextConfig
- spring application context configurationpublic static GUIApplication getInstance()
public void show(String beanName) throws NoSuchBeanDefinitionException
beanName
- the Spring bean name
NoSuchBeanDefinitionException
public void show(JComponent component)
show
in class org.jdesktop.application.SingleFrameApplication
component
- the component to showpublic void show(ApplicationFrame frame)
frame
- the frame to showpublic void showMain(JFrame frame)
frame
- the main framepublic void showMain(JComponent component)
component
- the component to put into the main framepublic void showMain()
public ActionsContext getActionsContext()
getActionsContext
in interface ActionsContextAware
public Action getAction(Object object, String actionName)
object
- the object containing actionsactionName
- the action name as String
public String getString(String id)
id
- the resource id
protected void shutdown()
shutdown
in class org.jdesktop.application.SingleFrameApplication
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |