|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.gui.Forest
public class Forest
Forest is a container for several trees with which a JTree can be
easily populated. This class essentially loads the hierarchies of
nodes in the db-core into trees of ForestNodes and returns the
roots of each tree (one for each node type).
Take care to ask it to reload its data whenever there is a change
to the db-core state. (Perhaps this should be detected
automatically?)
Constructor Summary | |
---|---|
Forest(CoreBrowser browser,
DBCoreInterface dbci,
DetailBox details,
boolean showAllRepTab,
TreeView treeView)
Constructor. |
Method Summary | |
---|---|
javax.swing.JComponent |
getRepositoriesPane()
Get a tabbed pane of nodeTypesTabbedPane where each tab represents a repository, plus one for "All Repositories." |
javax.swing.JTabbedPane |
getRepositoriesTabbedPane()
Get a tabbed pane of nodeTypesTabbedPane where each tab represents a repository, plus one for "All Repositories." |
NodeAddress |
getSelectedNode()
|
TreeType |
getSelectedTree()
Return the selected tree among the Forest, including the repository ID and the node type |
void |
populateAllTrees()
Go through the hierarchy, retrieve all trees, and (re-)populate them by running actual queries to find real data |
javax.swing.JComponent |
reconstruct(boolean showAllRepTab)
Create new JFrames, tree models, etc. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Forest(CoreBrowser browser, DBCoreInterface dbci, DetailBox details, boolean showAllRepTab, TreeView treeView) throws Scheherexception
Scheherexception
Method Detail |
---|
public javax.swing.JComponent reconstruct(boolean showAllRepTab) throws Scheherexception
Scheherexception
public void populateAllTrees() throws Scheherexception
Scheherexception
public javax.swing.JTabbedPane getRepositoriesTabbedPane()
public javax.swing.JComponent getRepositoriesPane() throws Scheherexception
Scheherexception
public TreeType getSelectedTree() throws Scheherexception
Scheherexception
public NodeAddress getSelectedNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |