Package com.pixelmed.query
Class QueryTreeModel
java.lang.Object
com.pixelmed.query.QueryTreeModel
- All Implemented Interfaces:
TreeModel
The QueryTreeModel
class implements a
TreeModel
to abstract the contents of a query response as
a tree in order to provide support for a QueryTreeBrowser
.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryTreeModel
(QueryInformationModel q, AttributeList filter) Construct a tree model with a root node on top. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
toString()
Dump the entire tree to a string.void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
QueryTreeModel
Construct a tree model with a root node on top.
The root node is the name of the called AET in the query information model.
The contents are added as required by actually performing queries as nodes are expanded.
- Parameters:
q
- the query information model to build the tree fromfilter
- the query request identifier as a list of DICOM attributes- Throws:
DicomException
- thrown if there are problems building the tree
-
-
Method Details
-
getChild
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
- Parameters:
parent
-child
-
-
getRoot
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
- Parameters:
parent
-
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
- Parameters:
path
-newValue
-
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
- Parameters:
tml
-
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
- Parameters:
tml
-
-
toString
Dump the entire tree to a string.
Performs a top-down traversal.
-