org.springframework.richclient.dialog
Class FormBackedDialogPage

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.core.LabeledObjectSupport
          extended by org.springframework.richclient.dialog.AbstractDialogPage
              extended by org.springframework.richclient.dialog.FormBackedDialogPage
All Implemented Interfaces:
PropertyChangePublisher, CommandLabelConfigurable, DescribedElement, DescriptionConfigurable, Guarded, TitleConfigurable, VisualizedElement, DialogPage, Messagable, ControlFactory, IconConfigurable, ImageConfigurable

public class FormBackedDialogPage
extends AbstractDialogPage

An implementation of DialogPage that delegates to a FormPage for its control, pageComplete status and messages.

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from class org.springframework.richclient.core.LabeledObjectSupport
logger
 
Fields inherited from interface org.springframework.richclient.dialog.DialogPage
DESCRIPTION_PROPERTY, PAGE_COMPLETE_PROPERTY
 
Fields inherited from interface org.springframework.richclient.dialog.Messagable
MESSAGE_PROPERTY
 
Fields inherited from interface org.springframework.richclient.core.DescribedElement
CAPTION_PROPERTY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY
 
Constructor Summary
FormBackedDialogPage(Form backingFormPage)
          Creates a new FormBackedDialogPage
FormBackedDialogPage(Form backingFormPage, boolean autoConfigure)
           
FormBackedDialogPage(String parentPageId, Form backingFormPage)
          Creates a new FormPageBackedDialogPage.
 
Method Summary
protected  JComponent createControl()
           
 Form getBackingFormPage()
          Get the Form backing this dialog page.
protected  void initPageValidationReporter()
           
 void onAboutToShow()
           
 void setEnabled(boolean enabled)
          Sets the enabled state of the object.
 
Methods inherited from class org.springframework.richclient.dialog.AbstractDialogPage
getControl, getIcon, getId, getMessage, getParentWindowControl, getTitle, hasErrorMessage, hasInfoMessage, hasWarningMessage, isControlCreated, isEnabled, isPageComplete, isVisible, performHelp, setIcon, setId, setMessage, setPageComplete, setVisible
 
Methods inherited from class org.springframework.richclient.core.LabeledObjectSupport
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getAccelerator, getCaption, getDescription, getDisplayName, getImage, getLabel, getMnemonic, getMnemonicIndex, hasChanged, hasChanged, hasChanged, removePropertyChangeListener, removePropertyChangeListener, setCaption, setDescription, setImage, setLabelInfo, setTitle, toString
 
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, wait, wait, wait
 
Methods inherited from interface org.springframework.richclient.dialog.DialogPage
getDescription, getImage
 
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

FormBackedDialogPage

public FormBackedDialogPage(Form backingFormPage)
Creates a new FormBackedDialogPage

Parameters:
backingFormPage - a named form page that will provide the control for this dialog page

FormBackedDialogPage

public FormBackedDialogPage(Form backingFormPage,
                            boolean autoConfigure)

FormBackedDialogPage

public FormBackedDialogPage(String parentPageId,
                            Form backingFormPage)
Creates a new FormPageBackedDialogPage.

Parameters:
parentPageId - the id of a containing parent page. This will be used to configure page titles/description
backingFormPage - the FormPage which will provide the control for this page.
Method Detail

getBackingFormPage

public Form getBackingFormPage()
Get the Form backing this dialog page.

Returns:
form

onAboutToShow

public void onAboutToShow()

createControl

protected JComponent createControl()
Specified by:
createControl in class AbstractDialogPage

initPageValidationReporter

protected void initPageValidationReporter()

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: Guarded
Sets the enabled state of the object.

Specified by:
setEnabled in interface Guarded
Overrides:
setEnabled in class AbstractDialogPage
Parameters:
enabled - true to enable the object, false to disable it.


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