Package org.xhtmlrenderer.swing
Class DOMTreeModel
java.lang.Object
org.xhtmlrenderer.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 objectvoid
Gets the child attribute of the DOMTreeModel objectint
getChildCount
(Object parent) Gets the childCount attribute of the DOMTreeModel objectint
getIndexOfChild
(Object parent, Object childNode) Gets the indexOfChild attribute of the DOMTreeModel objectgetRoot()
Gets the root attribute of the DOMTreeModel objectboolean
Gets the leaf attribute of the DOMTreeModel objectvoid
void
valueForPathChanged
(TreePath path, Object newValue)
-
Field Details
-
root
Our root for display -
displayableNodes
-
-
Constructor Details
-
DOMTreeModel
DOMTreeModel(Document doc)
-
-
Method Details
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
getChild
Gets the child attribute of the DOMTreeModel object -
getChildCount
Gets the childCount attribute of the DOMTreeModel object- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
Gets the indexOfChild attribute of the DOMTreeModel object- Specified by:
getIndexOfChild
in 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
-