|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.core.LabeledObjectSupport
org.springframework.richclient.dialog.AbstractDialogPage
org.springframework.richclient.dialog.CompositeDialogPage
org.springframework.richclient.dialog.TreeCompositeDialogPage
public class TreeCompositeDialogPage
A concrete implementation of CompositeDialogPage
that presents
the child pages in a tree on the left, and the pages itself on the right.
When the user selects a page in the tree, it is shown on the right.
This class also decorates the entries in the tree to indicate the page completed status.
Nested Class Summary | |
---|---|
protected class |
TreeCompositeDialogPage.PageSelector
|
protected class |
TreeCompositeDialogPage.PageTitleCellRenderer
|
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 | |
---|---|
TreeCompositeDialogPage(String pageId)
Constructs a new TreeCompositeDialogPage instance. |
|
TreeCompositeDialogPage(String pageId,
boolean autoConfigure)
|
Method Summary | |
---|---|
DialogPage |
addForm(DialogPage parent,
Form form)
Adds a new page to the tree. |
void |
addPage(DialogPage page)
Adds a DialogPage to the tree. |
void |
addPage(DialogPage parent,
DialogPage child)
Adds a DialogPage to the tree. |
void |
addPages(DialogPage parent,
DialogPage[] pages)
Adds a group DialogPages to the tree. |
protected JPanel |
createContentControl()
|
protected JComponent |
createControl()
|
protected void |
createTreeControl()
|
void |
expandAll(boolean expand)
Expands or collapses all of the tree nodes. |
void |
expandLevels(int levels,
boolean expand)
Expands or collapses a number of levels of tree nodes. |
protected DefaultMutableTreeNode |
getNode(DialogPage page)
|
protected Map |
getNodes()
Get the nodes map. |
protected JPanel |
getPagePanel()
Get the page panel. |
protected JTree |
getPageTree()
Get the page tree. |
protected DefaultTreeModel |
getPageTreeModel()
Get the page tree model. |
protected int |
getTreeControlWidth()
Get the width of the tree component to use in the final control construction. |
protected void |
processDialogPage(DialogPage page)
|
void |
removePage(DialogPage page)
Remove a page from the tree. |
protected void |
updatePageComplete(DialogPage page)
|
protected void |
updatePageLabels(DialogPage page)
|
Methods inherited from class org.springframework.richclient.dialog.CompositeDialogPage |
---|
addForm, addPages, addPages, createDialogPage, createPageControls, decoratePageTitle, getActivePage, getDecoratedPageTitle, getLargestPageSize, getPages, onPageSelected, prepareDialogPage, setActivePage, setAutoConfigureChildPages, updateMessage, updatePageEnabled, updatePageVisibility |
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 |
---|
public TreeCompositeDialogPage(String pageId)
TreeCompositeDialogPage
instance.
pageId
- the pageIdpublic TreeCompositeDialogPage(String pageId, boolean autoConfigure)
Method Detail |
---|
public void addPage(DialogPage page)
addPage
in class CompositeDialogPage
page
- the page to addpublic DialogPage addForm(DialogPage parent, Form form)
parent
- the parent page in the tree hierarchyformPage
- the form page to be inserted
public void addPage(DialogPage parent, DialogPage child)
parent
- the parent page in the tree hierarchypage
- the page to addpublic void removePage(DialogPage page)
page
- to removepublic void addPages(DialogPage parent, DialogPage[] pages)
parent
- the parent page in the tree hierarchypages
- the pages to addpublic void expandAll(boolean expand)
expand
- when true expand all nodes; otherwise collapses all nodespublic void expandLevels(int levels, boolean expand)
levels
- the number of levels to expand/collapsesexpand
- when true expand all nodes; otherwise collapses all nodesprotected JComponent createControl()
createControl
in class AbstractDialogPage
AbstractDialogPage.createControl()
protected void processDialogPage(DialogPage page)
protected JPanel createContentControl()
protected int getTreeControlWidth()
protected void createTreeControl()
protected void updatePageComplete(DialogPage page)
updatePageComplete
in class CompositeDialogPage
protected void updatePageLabels(DialogPage page)
updatePageLabels
in class CompositeDialogPage
protected DefaultMutableTreeNode getNode(DialogPage page)
protected Map getNodes()
protected JTree getPageTree()
protected JPanel getPagePanel()
protected DefaultTreeModel getPageTreeModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |