Class DOMTreeModel
java.lang.Object
org.loboevolution.menu.tools.developer.tool.inspector.DOMTreeModel
- All Implemented Interfaces:
TreeModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified TreeModel listener to receive TreeModel events from this component.Gets the child attribute of the DOMTreeModel objectintgetChildCount(Object parent) Gets the childCount attribute of the DOMTreeModel objectintgetIndexOfChild(Object parent, Object child) Gets the indexOfChild attribute of the DOMTreeModel objectgetRoot()Gets the root attribute of the DOMTreeModel objectbooleanGets the leaf attribute of the DOMTreeModel objectvoidRemoves the specified TreeModel listener so that it no longer receives TreeModel events from this component.voidvalueForPathChanged(TreePath path, Object newValue) Messaged when the user has altered the value for the item identified bypathtonewValue.
-
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:
addTreeModelListenerin 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:
removeTreeModelListenerin 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:
getChildCountin interfaceTreeModel- Parameters:
parent- PARAM- Returns:
- The childCount value
-
getIndexOfChild
Gets the indexOfChild attribute of the DOMTreeModel object- Specified by:
getIndexOfChildin 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 bypathtonewValue. IfnewValuesignifies a truly new value the model should post atreeNodesChangedevent.- Specified by:
valueForPathChangedin interfaceTreeModel- Parameters:
path- path to the node that the user has alterednewValue- the new value from the TreeCellEditor
-