org.springframework.richclient.application.support
Class AboutBox.AboutDialog

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.dialog.ApplicationDialog
          extended by org.springframework.richclient.application.support.AboutBox.AboutDialog
All Implemented Interfaces:
Guarded, TitleConfigurable
Enclosing class:
AboutBox

protected class AboutBox.AboutDialog
extends ApplicationDialog


Field Summary
 
Fields inherited from class org.springframework.richclient.dialog.ApplicationDialog
DEFAULT_CANCEL_COMMAND_ID, DEFAULT_FINISH_COMMAND_ID, DEFAULT_FINISH_SUCCESS_MESSAGE_KEY, DEFAULT_FINISH_SUCCESS_TITLE_KEY, logger, SUCCESS_FINISH_MESSAGE_KEY, SUCCESS_FINISH_TITLE_KEY
 
Constructor Summary
AboutBox.AboutDialog()
           
 
Method Summary
protected  void addDialogComponents()
          Subclasses may override to customize how this dialog is built.
protected  JComponent createApplicationDescriptorComponent()
          Create the control that shows the application descriptor data (title, caption, description, version, and build id).
protected  JComponent createDialogContentPane()
          Construct the main dialog pane.
protected  Object[] getCommandGroupMembers()
          Template getter method to return the commands to populate the dialog button bar.
protected  AboutBox.HtmlScroller getHtmlScroller()
          Get the scrolling HTML panel.
protected  void onAboutToShow()
          Template lifecycle method invoked right before the dialog is to become visible.
protected  boolean onFinish()
          Request invocation of the action taken when the user hits the OK (finish) button.
 
Methods inherited from class org.springframework.richclient.dialog.ApplicationDialog
addActionKeyBinding, addActionKeyBinding, attachListeners, componentsChanged, createButtonBar, createDialog, dispose, disposeDialogContentPane, getActionMap, getCallingCommand, getCancelCommand, getCancelCommandId, getDialog, getDialogContentPane, getDisplayFinishSuccessMessage, getFinishCommand, getFinishCommandId, getFinishSecurityControllerId, getFinishSuccessMessage, getFinishSuccessMessageArguments, getFinishSuccessTitle, getFinishSuccessTitleArguments, getInputMap, getLocation, getLocationRelativeTo, getParentComponent, getParentWindow, getPreferredSize, getTitle, getWindowForComponent, hide, init, isControlCreated, isEnabled, isShowing, onCancel, onInitialized, onWindowActivated, onWindowClosing, onWindowGainedFocus, onWindowLostFocus, registerCancelCommandAsDefault, registerDefaultCommand, registerDefaultCommand, setCallingCommand, setCloseAction, setDefaultEnabled, setDisplayFinishSuccessMessage, setEnabled, setFinishEnabled, setLocation, setLocationRelativeTo, setModal, setParentComponent, setPreferredSize, setResizable, setTitle, showDialog, showFinishSuccessMessageDialog
 
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AboutBox.AboutDialog

public AboutBox.AboutDialog()
Method Detail

addDialogComponents

protected void addDialogComponents()
Description copied from class: ApplicationDialog
Subclasses may override to customize how this dialog is built.

Overrides:
addDialogComponents in class ApplicationDialog

createApplicationDescriptorComponent

protected JComponent createApplicationDescriptorComponent()
Create the control that shows the application descriptor data (title, caption, description, version, and build id).

Returns:
control

createDialogContentPane

protected JComponent createDialogContentPane()
Construct the main dialog pane.

Specified by:
createDialogContentPane in class ApplicationDialog
Returns:
Constructed component
See Also:
ApplicationDialog.disposeDialogContentPane()

onAboutToShow

protected void onAboutToShow()
Description copied from class: ApplicationDialog
Template lifecycle method invoked right before the dialog is to become visible.

Overrides:
onAboutToShow in class ApplicationDialog

onFinish

protected boolean onFinish()
Description copied from class: ApplicationDialog
Request invocation of the action taken when the user hits the OK (finish) button.

Specified by:
onFinish in class ApplicationDialog
Returns:
true if action completed successfully; false otherwise.

getCommandGroupMembers

protected Object[] getCommandGroupMembers()
Description copied from class: ApplicationDialog
Template getter method to return the commands to populate the dialog button bar.

Overrides:
getCommandGroupMembers in class ApplicationDialog
Returns:
The array of commands (may also be a separator or glue identifier)

getHtmlScroller

protected AboutBox.HtmlScroller getHtmlScroller()
Get the scrolling HTML panel.

Returns:
scroller


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.