org.springframework.richclient.samples.simple.ui
Class ContactPropertiesDialog

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.dialog.ApplicationDialog
          extended by org.springframework.richclient.dialog.TitledApplicationDialog
              extended by org.springframework.richclient.dialog.TitledPageApplicationDialog
                  extended by org.springframework.richclient.samples.simple.ui.ContactPropertiesDialog
All Implemented Interfaces:
PropertyChangePublisher, DescriptionConfigurable, Guarded, TitleConfigurable, Messagable, ImageConfigurable

public class ContactPropertiesDialog
extends TitledPageApplicationDialog

This is a dialog for editing the properties of a Contact object. It is a simple "form backed" dialog, meaning that the body of the dialog is provided from a "form backed" dialog page. The Ok (finish) button will be wired into the "page complete" state of the dialog page, which in turn gets its state from the automatic validation of the properties on the form.

Author:
Larry Streepy
See Also:
FormBackedDialogPage, ContactForm

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
 
Fields inherited from interface org.springframework.richclient.dialog.Messagable
MESSAGE_PROPERTY
 
Constructor Summary
ContactPropertiesDialog(Contact contact, ContactDataStore dataStore)
           
ContactPropertiesDialog(ContactDataStore dataStore)
           
 
Method Summary
protected  void onAboutToShow()
          Template lifecycle method invoked right before the dialog is to become visible.
protected  void onCancel()
          Handle a dialog cancellation request.
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.TitledPageApplicationDialog
createTitledDialogContentPane, getDescription, getDialogPage, setDialogPage, setTitlePaneImage, setTitlePaneTitle, update, updateMessagePane, updateTitlePane
 
Methods inherited from class org.springframework.richclient.dialog.TitledApplicationDialog
addDialogComponents, addPropertyChangeListener, addPropertyChangeListener, createDialogContentPane, disposeDialogContentPane, getMessage, getTitlePaneImage, getTitlePaneTitle, isMessageShowing, removePropertyChangeListener, removePropertyChangeListener, setCaption, setContentPane, setDescription, setImage, setMessage
 
Methods inherited from class org.springframework.richclient.dialog.ApplicationDialog
addActionKeyBinding, addActionKeyBinding, attachListeners, componentsChanged, createButtonBar, createDialog, dispose, getActionMap, getCallingCommand, getCancelCommand, getCancelCommandId, getCommandGroupMembers, getDialog, getDialogContentPane, getDisplayFinishSuccessMessage, getFinishCommand, getFinishCommandId, getFinishSecurityControllerId, getFinishSuccessMessage, getFinishSuccessMessageArguments, getFinishSuccessTitle, getFinishSuccessTitleArguments, getInputMap, getLocation, getLocationRelativeTo, getParentComponent, getParentWindow, getPreferredSize, getTitle, getWindowForComponent, hide, init, isControlCreated, isEnabled, isShowing, 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

ContactPropertiesDialog

public ContactPropertiesDialog(ContactDataStore dataStore)

ContactPropertiesDialog

public ContactPropertiesDialog(Contact contact,
                               ContactDataStore dataStore)
Method Detail

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.

onCancel

protected void onCancel()
Description copied from class: ApplicationDialog
Handle a dialog cancellation request.

Overrides:
onCancel in class ApplicationDialog


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