Class VariableModel
java.lang.Object
org.htmlunit.corejs.javascript.tools.debugger.VariableModel
- All Implemented Interfaces:
TreeModel,TreeTableModel
Tree model for script object inspection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA variable node in the tree. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VariableModel.VariableNode[]EmptyVariableModel.VariableNodearray.private static final String[]Serializable magic number.private static final Class<?>[]Tree column types.private DimThe debugger.private VariableModel.VariableNodeThe root node. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VariableModel.VariableModel(Dim debugger, Object scope) Creates a new VariableModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a TreeModelListener to this tree.private VariableModel.VariableNode[]Returns an array of the children of the given node.Returns a child of the given node.intgetChildCount(Object nodeObj) Returns the number of children of the given node.Class<?> getColumnClass(int column) Returns the type of value stored in the given column.intReturns the number of columns.getColumnName(int column) Returns the name of the given column.intgetIndexOfChild(Object parentObj, Object childObj) Returns the index of a node under its parent.getRoot()Returns the root node of the tree.Returns the value of the given node.getValueAt(Object nodeObj, int column) Returns the value at the given cell.booleanisCellEditable(Object node, int column) Returns whether the given cell is editable.booleanReturns whether the given node is a leaf node.voidRemoves a TreeModelListener from this tree.voidsetValueAt(Object value, Object node, int column) Sets the value at the given cell.voidvalueForPathChanged(TreePath path, Object newValue)
-
Field Details
-
cNames
Serializable magic number. -
cTypes
Tree column types. -
CHILDLESS
EmptyVariableModel.VariableNodearray. -
debugger
The debugger. -
root
The root node.
-
-
Constructor Details
-
VariableModel
public VariableModel()Creates a new VariableModel. -
VariableModel
Creates a new VariableModel.
-
-
Method Details
-
getRoot
Returns the root node of the tree. -
getChildCount
Returns the number of children of the given node.- Specified by:
getChildCountin interfaceTreeModel
-
getChild
Returns a child of the given node. -
isLeaf
Returns whether the given node is a leaf node. -
getIndexOfChild
Returns the index of a node under its parent.- Specified by:
getIndexOfChildin interfaceTreeModel
-
isCellEditable
Returns whether the given cell is editable.- Specified by:
isCellEditablein interfaceTreeTableModel
-
setValueAt
Sets the value at the given cell.- Specified by:
setValueAtin interfaceTreeTableModel
-
addTreeModelListener
Adds a TreeModelListener to this tree.- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
Removes a TreeModelListener from this tree.- Specified by:
removeTreeModelListenerin interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
getColumnCount
public int getColumnCount()Returns the number of columns.- Specified by:
getColumnCountin interfaceTreeTableModel
-
getColumnName
Returns the name of the given column.- Specified by:
getColumnNamein interfaceTreeTableModel
-
getColumnClass
Returns the type of value stored in the given column.- Specified by:
getColumnClassin interfaceTreeTableModel
-
getValueAt
Returns the value at the given cell.- Specified by:
getValueAtin interfaceTreeTableModel
-
children
Returns an array of the children of the given node. -
getValue
Returns the value of the given node.
-