|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.config.ApplicationLifecycleAdvisor
org.springframework.richclient.application.config.DefaultApplicationLifecycleAdvisor
public class DefaultApplicationLifecycleAdvisor
Constructor Summary | |
---|---|
DefaultApplicationLifecycleAdvisor()
|
Method Summary | |
---|---|
protected void |
addChildCommandContext(ApplicationContext context)
Add a new child command context. |
ApplicationWindowCommandManager |
createWindowCommandManager()
Create a ApplicationWindowCommandManager for the application. |
protected List |
getChildCommandContexts()
Get all the child command contexts that have been created. |
protected ConfigurableListableBeanFactory |
getCommandBarFactory()
|
protected CommandGroup |
getCommandGroup(String name)
|
CommandGroup |
getMenuBarCommandGroup()
Create the menuBar for the application. |
CommandGroup |
getToolBarCommandGroup()
Create the toolBar for the application. |
protected void |
initNewWindowCommandBarFactory()
|
void |
onApplicationEvent(ApplicationEvent event)
We need to deliver all application events down to the child command contexts that have been created. |
void |
setMenubarBeanName(String menubarBeanName)
|
void |
setToolbarBeanName(String toolbarBeanName)
|
void |
setWindowCommandBarDefinitions(String commandBarDefinitionLocation)
|
void |
setWindowCommandManagerBeanName(String commandManagerBeanName)
|
Methods inherited from class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor |
---|
afterPropertiesSet, getApplication, getApplicationServices, getApplicationSessionInitializer, getOpeningWindow, getRegisterableExceptionHandler, getStartingPageId, getStatusBar, onCommandsCreated, onPostStartup, onPreInitialize, onPreStartup, onPreWindowClose, onPreWindowOpen, onShutdown, onWindowCreated, onWindowOpened, setApplication, setApplicationSessionInitializer, setOpeningWindow, setRegisterableExceptionHandler, setStartingPageId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultApplicationLifecycleAdvisor()
Method Detail |
---|
public void setWindowCommandBarDefinitions(String commandBarDefinitionLocation)
public void setWindowCommandManagerBeanName(String commandManagerBeanName)
public void setMenubarBeanName(String menubarBeanName)
public void setToolbarBeanName(String toolbarBeanName)
public ApplicationWindowCommandManager createWindowCommandManager()
ApplicationLifecycleAdvisor
ApplicationWindowCommandManager
for the application.
createWindowCommandManager
in class ApplicationLifecycleAdvisor
protected void initNewWindowCommandBarFactory()
protected ConfigurableListableBeanFactory getCommandBarFactory()
public CommandGroup getMenuBarCommandGroup()
ApplicationLifecycleAdvisor
getMenuBarCommandGroup
in class ApplicationLifecycleAdvisor
public CommandGroup getToolBarCommandGroup()
ApplicationLifecycleAdvisor
getToolBarCommandGroup
in class ApplicationLifecycleAdvisor
protected CommandGroup getCommandGroup(String name)
public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent
in interface ApplicationListener
event
- to deliverprotected List getChildCommandContexts()
Note, theactual collection is being returned - so be careful what you do to it.
protected void addChildCommandContext(ApplicationContext context)
context
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |