org.springframework.richclient.dialog
Class TabbedDialogPage
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.core.LabeledObjectSupport
org.springframework.richclient.dialog.AbstractDialogPage
org.springframework.richclient.dialog.CompositeDialogPage
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 DialogPage
s; 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
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 |
TabbedDialogPage
public TabbedDialogPage(String pageId)
TabbedDialogPage
public TabbedDialogPage(String pageId,
boolean autoConfigure)
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.