Advisor for the Application. This class provides the startingPageId, an exceptionHandler for uncaught exceptions, application wide window structures(menu/toolbar/statusbar) and a number of hook methods that are called in the startup/closing process.
The sequence in which the hooks are called is as follows:
Application Creation {@link ApplicationLifecycleAdvisor#setApplication(Application)}{@link ApplicationLifecycleAdvisor#onPreInitialize(Application)}Application Start {@link ApplicationLifecycleAdvisor#onPreStartup()}ApplicationWindow Creation {@link ApplicationLifecycleAdvisor#setOpeningWindow(ApplicationWindow)}{@link ApplicationLifecycleAdvisor#onPreWindowOpen(ApplicationWindowConfigurer)}{@link ApplicationLifecycleAdvisor#createWindowCommandManager()}{@link ApplicationLifecycleAdvisor#getMenuBarCommandGroup()}{@link ApplicationLifecycleAdvisor#getToolBarCommandGroup()}{@link ApplicationLifecycleAdvisor#getStatusBar()}{@link ApplicationLifecycleAdvisor#onCommandsCreated(ApplicationWindow)}ApplicationWindow Creating the JFrame {@link ApplicationLifecycleAdvisor#onWindowCreated(ApplicationWindow)}ApplicationWindow Shows JFrame (setVisible(true)) {@link ApplicationLifecycleAdvisor#onWindowOpened(ApplicationWindow)}{@link ApplicationLifecycleAdvisor#onPostStartup()}
The remaining hook is called when the ApplicationWindow is closed: {@link ApplicationLifecycleAdvisor#onPreWindowClose(ApplicationWindow)}.
@author Keith Donald @author Jim Moore
|
|
|
|
|
|