Package org.openpdf.swing
Class DOMTreeModel
java.lang.Object
org.openpdf.swing.DOMTreeModel
- All Implemented Interfaces:
TreeModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDisplayable(Node parent) Adds a feature to the Displayable attribute of the DOMTreeModel objectvoidGets the child attribute of the DOMTreeModel objectintgetChildCount(Object parent) Gets the childCount attribute of the DOMTreeModel objectintgetIndexOfChild(Object parent, Object childNode) Gets the indexOfChild attribute of the DOMTreeModel objectgetRoot()Gets the root attribute of the DOMTreeModel objectbooleanGets the leaf attribute of the DOMTreeModel objectvoidvoidvalueForPathChanged(TreePath path, Object newValue)
-
Field Details
-
root
Our root for display -
displayableNodes
-
-
Constructor Details
-
DOMTreeModel
DOMTreeModel(Document doc)
-
-
Method Details
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
getChild
Gets the child attribute of the DOMTreeModel object -
getChildCount
Gets the childCount attribute of the DOMTreeModel object- Specified by:
getChildCountin interfaceTreeModel
-
getIndexOfChild
Gets the indexOfChild attribute of the DOMTreeModel object- Specified by:
getIndexOfChildin interfaceTreeModel
-
getRoot
Gets the root attribute of the DOMTreeModel object -
isLeaf
Gets the leaf attribute of the DOMTreeModel object -
addDisplayable
Adds a feature to the Displayable attribute of the DOMTreeModel object- Parameters:
parent- The feature to be added to the Displayable attribute
-