org.springframework.richclient.dialog
Class TabbedDialogPage

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.CompositeDialogPage
                  extended by org.springframework.richclient.dialog.TabbedDialogPage
All Implemented Interfaces:
PropertyChangePublisher, CommandLabelConfigurable, DescribedElement, DescriptionConfigurable, Guarded, TitleConfigurable, VisualizedElement, DialogPage, Messagable, ControlFactory, IconConfigurable, ImageConfigurable

public class TabbedDialogPage
extends CompositeDialogPage

A concrete implementation of CompositeDialogPage that presents the child pages in a JTabbedPane.

Each child page is placed into a separate tab of the JTabbedPane. This class also decorates the tab titles to indicate the page completed status.

Has support for hiding/showing DialogPages; on DialogPage.setVisible(false) the tab for the page is removed from the ui, on DialogPage.setVisible(true) it is shown again.

Author:
Oliver Hutchison, Peter De Bruycker

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.richclient.dialog.CompositeDialogPage
CompositeDialogPage.ChildChangeHandler
 
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
TabbedDialogPage(String pageId)
           
TabbedDialogPage(String pageId, boolean autoConfigure)
           
 
Method Summary
protected  boolean canChangeTabs()
           
protected  JComponent createControl()
           
protected  void decorateTab(Tab tab, DialogPage page)
           
protected  Tab getTab(DialogPage page)
           
 void setActivePage(DialogPage page)
          Sets the active page of this TabbedDialogPage.
protected  void updatePageComplete(DialogPage page)
           
protected  void updatePageEnabled(DialogPage page)
           
protected  void updatePageLabels(DialogPage page)
           
protected  void updatePageVisibility(DialogPage page)
           
 
Methods inherited from class org.springframework.richclient.dialog.CompositeDialogPage
addForm, addPage, addPages, addPages, createDialogPage, createPageControls, decoratePageTitle, getActivePage, getDecoratedPageTitle, getLargestPageSize, getPages, onPageSelected, prepareDialogPage, setAutoConfigureChildPages, updateMessage
 
Methods inherited from class org.springframework.richclient.dialog.AbstractDialogPage
getControl, getIcon, getId, getMessage, getParentWindowControl, getTitle, hasErrorMessage, hasInfoMessage, hasWarningMessage, isControlCreated, isEnabled, isPageComplete, isVisible, performHelp, setEnabled, 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

TabbedDialogPage

public TabbedDialogPage(String pageId)

TabbedDialogPage

public TabbedDialogPage(String pageId,
                        boolean autoConfigure)
Method Detail

createControl

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

setActivePage

public void setActivePage(DialogPage page)
Sets the active page of this TabbedDialogPage. This method will also select the tab wich displays the new active page.

Overrides:
setActivePage in class CompositeDialogPage
Parameters:
activePage - the page to be made active. Must be one of the child pages.

canChangeTabs

protected boolean canChangeTabs()

updatePageComplete

protected void updatePageComplete(DialogPage page)
Overrides:
updatePageComplete in class CompositeDialogPage

decorateTab

protected void decorateTab(Tab tab,
                           DialogPage page)

updatePageVisibility

protected void updatePageVisibility(DialogPage page)
Overrides:
updatePageVisibility in class CompositeDialogPage

updatePageEnabled

protected void updatePageEnabled(DialogPage page)
Overrides:
updatePageEnabled in class CompositeDialogPage

updatePageLabels

protected void updatePageLabels(DialogPage page)
Overrides:
updatePageLabels in class CompositeDialogPage

getTab

protected final Tab getTab(DialogPage page)


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