Class DOMTreeModel
java.lang.Object
org.loboevolution.menu.tools.developer.tool.inspector.DOMTreeModel
- All Implemented Interfaces:
TreeModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Messaged when the user has altered the value for the item identified bypath
tonewValue
.
-
Constructor Details
-
DOMTreeModel
Constructor for the DOMTreeModel object- Parameters:
doc
- PARAM
-
-
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.
-
getChild
Gets the child attribute of the DOMTreeModel object -
getChildCount
Gets the childCount attribute of the DOMTreeModel object- Specified by:
getChildCount
in interfaceTreeModel
- Parameters:
parent
- PARAM- Returns:
- The childCount value
-
getIndexOfChild
Gets the indexOfChild attribute of the DOMTreeModel object- Specified by:
getIndexOfChild
in interfaceTreeModel
- Parameters:
parent
- PARAMchild
- PARAM- Returns:
- The indexOfChild value
-
getRoot
Gets the root attribute of the DOMTreeModel object -
isLeaf
Gets the leaf attribute of the DOMTreeModel object -
valueForPathChanged
Messaged when the user has altered the value for the item identified bypath
tonewValue
. IfnewValue
signifies a truly new value the model should post atreeNodesChanged
event.- Specified by:
valueForPathChanged
in interfaceTreeModel
- Parameters:
path
- path to the node that the user has alterednewValue
- the new value from the TreeCellEditor
-