|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.database.DatabaseTreeModel
public class DatabaseTreeModel
The DatabaseTreeModel class implements a
TreeModel to abstract the contents of a database as
a tree in order to provide support for a DatabaseTreeBrowser.
For details of some of the methods implemented here see javax.swing.tree.TreeModel.
| Constructor Summary | |
|---|---|
DatabaseTreeModel(DatabaseInformationModel d)
Construct a tree model of the supplied database. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener tml)
|
Object |
getChild(Object node,
int index)
|
int |
getChildCount(Object parent)
|
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
boolean |
isLeaf(Object node)
|
void |
removeTreeModelListener(TreeModelListener tml)
|
String |
toString()
Dump the entire tree to a string. |
void |
valueForPathChanged(TreePath path,
Object newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseTreeModel(DatabaseInformationModel d)
throws DicomException
Construct a tree model of the supplied database.
d - the database information model to build the tree from
DicomException - thrown if there are problems accessing the database| Method Detail |
|---|
public Object getChild(Object node,
int index)
getChild in interface TreeModelnode - index -
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelparent - child - public Object getRoot()
getRoot in interface TreeModelpublic int getChildCount(Object parent)
getChildCount in interface TreeModelparent - public boolean isLeaf(Object node)
isLeaf in interface TreeModelnode -
public void valueForPathChanged(TreePath path,
Object newValue)
valueForPathChanged in interface TreeModelpath - newValue - public void addTreeModelListener(TreeModelListener tml)
addTreeModelListener in interface TreeModeltml - public void removeTreeModelListener(TreeModelListener tml)
removeTreeModelListener in interface TreeModeltml - public String toString()
Dump the entire tree to a string.
Performs a top-down traversal.
toString in class ObjectDatabaseTreeRecord.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||