de.mindcrimeilab.xsanalyzer
Class XsAnalyzerLifecycleAdvisor

java.lang.Object
  extended by org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
      extended by org.springframework.richclient.application.config.DefaultApplicationLifecycleAdvisor
          extended by de.mindcrimeilab.xsanalyzer.XsAnalyzerLifecycleAdvisor
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener

public class XsAnalyzerLifecycleAdvisor
extends org.springframework.richclient.application.config.DefaultApplicationLifecycleAdvisor

XsAnalyzerLifecycleAdvisor - created by spring-rich

Version:
$Revision: 165 $
Author:
Michael Engelhardt, $Author: agony $

Constructor Summary
XsAnalyzerLifecycleAdvisor()
           
 
Method Summary
 org.springframework.richclient.settings.Settings getSettings()
           
 org.springframework.richclient.application.statusbar.StatusBar getStatusBar()
           
 void onCommandsCreated(org.springframework.richclient.application.ApplicationWindow window)
          Called just after the command context has been internalized.
 void onPostStartup()
          Called when the application has fully started.
 boolean onPreWindowClose(org.springframework.richclient.application.ApplicationWindow window)
          Called when the window is being closed.
 void onPreWindowOpen(org.springframework.richclient.application.config.ApplicationWindowConfigurer configurer)
          This method is called prior to the opening of an application window.
 void onShutdown()
           
 void onWindowCreated(org.springframework.richclient.application.ApplicationWindow window)
          Called after the actual window control has been created.
 void onWindowOpened(org.springframework.richclient.application.ApplicationWindow window)
          Called immediately after making the window visible.
 void setSettings(org.springframework.richclient.settings.Settings settings)
           
 
Methods inherited from class org.springframework.richclient.application.config.DefaultApplicationLifecycleAdvisor
addChildCommandContext, createWindowCommandManager, getChildCommandContexts, getCommandBarFactory, getCommandGroup, getMenuBarCommandGroup, getToolBarCommandGroup, initNewWindowCommandBarFactory, onApplicationEvent, setMenubarBeanName, setToolbarBeanName, setWindowCommandBarDefinitions, setWindowCommandManagerBeanName
 
Methods inherited from class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
afterPropertiesSet, getApplication, getApplicationServices, getOpeningWindow, getRegisterableExceptionHandler, getStartingPageId, onPreInitialize, onPreStartup, setApplication, setOpeningWindow, setRegisterableExceptionHandler, setStartingPageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsAnalyzerLifecycleAdvisor

public XsAnalyzerLifecycleAdvisor()
Method Detail

onPreWindowOpen

public void onPreWindowOpen(org.springframework.richclient.application.config.ApplicationWindowConfigurer configurer)
This method is called prior to the opening of an application window. Note at this point the window control has not been created. This hook allows programmatic control over the configuration of the window (by setting properties on the configurer) and it provides a hook where code that needs to be executed prior to the window opening can be plugged in (like a startup wizard, for example).

Overrides:
onPreWindowOpen in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
Parameters:
configurer - The application window configurer

onCommandsCreated

public void onCommandsCreated(org.springframework.richclient.application.ApplicationWindow window)
Called just after the command context has been internalized. At this point, all the commands for the window have been created and are available for use. If you need to force the execution of a command prior to the display of an application window (like a login command), this is where you'd do it.

Overrides:
onCommandsCreated in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
Parameters:
window - The window who's commands have just been created

onWindowCreated

public void onWindowCreated(org.springframework.richclient.application.ApplicationWindow window)
Called after the actual window control has been created.

Overrides:
onWindowCreated in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
Parameters:
window - The window being processed

onWindowOpened

public void onWindowOpened(org.springframework.richclient.application.ApplicationWindow window)
Called immediately after making the window visible.

Overrides:
onWindowOpened in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
Parameters:
window - The window being processed

onPreWindowClose

public boolean onPreWindowClose(org.springframework.richclient.application.ApplicationWindow window)
Called when the window is being closed. This hook allows control over whether the window is allowed to close. By returning false from this method, the window will not be closed.

Overrides:
onPreWindowClose in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor
Returns:
boolean indicator if window should be closed. true to allow the close, false to prevent the close.

onPostStartup

public void onPostStartup()
Called when the application has fully started. This is after the initial application window has been made visible.

Overrides:
onPostStartup in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor

onShutdown

public void onShutdown()
Overrides:
onShutdown in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor

getSettings

public org.springframework.richclient.settings.Settings getSettings()
Returns:
the settings

setSettings

public void setSettings(org.springframework.richclient.settings.Settings settings)
Parameters:
settings - the settings to set

getStatusBar

public org.springframework.richclient.application.statusbar.StatusBar getStatusBar()
Overrides:
getStatusBar in class org.springframework.richclient.application.config.ApplicationLifecycleAdvisor


Copyright © 2010. All Rights Reserved.