Package org.xhtmlrenderer.swing
Class DOMTreeModel
java.lang.Object
org.xhtmlrenderer.swing.DOMTreeModel
- All Implemented Interfaces:
TreeModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<TreeModelListener> private Node
Our root for display -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDisplayable
(Node parent) Adds a feature to the Displayable attribute of the DOMTreeModel objectvoid
Adds the specified TreeModel listener to receive TreeModel events from this component.Gets the child attribute of the DOMTreeModel objectint
getChildCount
(Object parent) Gets the childCount attribute of the DOMTreeModel objectint
getIndexOfChild
(Object parent, Object child) Gets the indexOfChild attribute of the DOMTreeModel objectgetRoot()
Gets the root attribute of the DOMTreeModel objectboolean
Gets the leaf attribute of the DOMTreeModel objectvoid
Removes the specified TreeModel listener so that it no longer receives TreeModel events from this component.void
valueForPathChanged
(TreePath path, Object newValue)
-
Field Details
-
root
Our root for display -
displayableNodes
-
listeners
-
-
Constructor Details
-
DOMTreeModel
DOMTreeModel(Document doc)
-
-
Method Details
-
addTreeModelListener
Adds the specified TreeModel listener to receive TreeModel events from this component. If listener l is null, no exception is thrown and no action is performed.- Specified by:
addTreeModelListener
in interfaceTreeModel
- Parameters:
l
- Contains the TreeModelListener for TreeModelEvent data.
-
removeTreeModelListener
Removes the specified TreeModel listener so that it no longer receives TreeModel events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If listener l is null, no exception is thrown and no action is performed.- Specified by:
removeTreeModelListener
in interfaceTreeModel
- Parameters:
l
- Contains the TreeModelListener for TreeModelEvent data.
-
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
-