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.QueryTreeModel(QueryInformationModel q, AttributeList filter, int debugLevel) Construct a tree model with a root node on top. -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetChildCount(Object parent) intgetIndexOfChild(Object parent, Object child) getRoot()booleanvoidtoString()Dump the entire tree to a string.voidvalueForPathChanged(TreePath path, Object newValue)
-
Constructor Details
-
QueryTreeModel
public QueryTreeModel(QueryInformationModel q, AttributeList filter, int debugLevel) throws DicomException 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 attributesdebugLevel- unused- Throws:
DicomException- thrown if there are problems building the tree
-
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:
getIndexOfChildin interfaceTreeModel- Parameters:
parent-child-
-
getRoot
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel- Parameters:
parent-
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel- Parameters:
path-newValue-
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel- Parameters:
tml-
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel- Parameters:
tml-
-
toString
Dump the entire tree to a string.
Performs a top-down traversal.
-