Class VariableModel

  • All Implemented Interfaces:
    javax.swing.tree.TreeModel, TreeTableModel

    class VariableModel
    extends java.lang.Object
    implements TreeTableModel
    Tree model for script object inspection.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  VariableModel.VariableNode
      A variable node in the tree.
    • Constructor Summary

      Constructors 
      Constructor Description
      VariableModel()
      Creates a new VariableModel.
      VariableModel​(Dim debugger, java.lang.Object scope)
      Creates a new VariableModel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTreeModelListener​(javax.swing.event.TreeModelListener l)
      Adds a TreeModelListener to this tree.
      private VariableModel.VariableNode[] children​(VariableModel.VariableNode node)
      Returns an array of the children of the given node.
      java.lang.Object getChild​(java.lang.Object nodeObj, int i)
      Returns a child of the given node.
      int getChildCount​(java.lang.Object nodeObj)
      Returns the number of children of the given node.
      java.lang.Class<?> getColumnClass​(int column)
      Returns the type of value stored in the given column.
      int getColumnCount()
      Returns the number of columns.
      java.lang.String getColumnName​(int column)
      Returns the name of the given column.
      int getIndexOfChild​(java.lang.Object parentObj, java.lang.Object childObj)
      Returns the index of a node under its parent.
      java.lang.Object getRoot()
      Returns the root node of the tree.
      java.lang.Object getValue​(VariableModel.VariableNode node)
      Returns the value of the given node.
      java.lang.Object getValueAt​(java.lang.Object nodeObj, int column)
      Returns the value at the given cell.
      boolean isCellEditable​(java.lang.Object node, int column)
      Returns whether the given cell is editable.
      boolean isLeaf​(java.lang.Object nodeObj)
      Returns whether the given node is a leaf node.
      void removeTreeModelListener​(javax.swing.event.TreeModelListener l)
      Removes a TreeModelListener from this tree.
      void setValueAt​(java.lang.Object value, java.lang.Object node, int column)
      Sets the value at the given cell.
      void valueForPathChanged​(javax.swing.tree.TreePath path, java.lang.Object newValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VariableModel

        public VariableModel()
        Creates a new VariableModel.
      • VariableModel

        public VariableModel​(Dim debugger,
                             java.lang.Object scope)
        Creates a new VariableModel.
    • Method Detail

      • getRoot

        public java.lang.Object getRoot()
        Returns the root node of the tree.
        Specified by:
        getRoot in interface javax.swing.tree.TreeModel
      • getChildCount

        public int getChildCount​(java.lang.Object nodeObj)
        Returns the number of children of the given node.
        Specified by:
        getChildCount in interface javax.swing.tree.TreeModel
      • getChild

        public java.lang.Object getChild​(java.lang.Object nodeObj,
                                         int i)
        Returns a child of the given node.
        Specified by:
        getChild in interface javax.swing.tree.TreeModel
      • isLeaf

        public boolean isLeaf​(java.lang.Object nodeObj)
        Returns whether the given node is a leaf node.
        Specified by:
        isLeaf in interface javax.swing.tree.TreeModel
      • getIndexOfChild

        public int getIndexOfChild​(java.lang.Object parentObj,
                                   java.lang.Object childObj)
        Returns the index of a node under its parent.
        Specified by:
        getIndexOfChild in interface javax.swing.tree.TreeModel
      • isCellEditable

        public boolean isCellEditable​(java.lang.Object node,
                                      int column)
        Returns whether the given cell is editable.
        Specified by:
        isCellEditable in interface TreeTableModel
      • setValueAt

        public void setValueAt​(java.lang.Object value,
                               java.lang.Object node,
                               int column)
        Sets the value at the given cell.
        Specified by:
        setValueAt in interface TreeTableModel
      • addTreeModelListener

        public void addTreeModelListener​(javax.swing.event.TreeModelListener l)
        Adds a TreeModelListener to this tree.
        Specified by:
        addTreeModelListener in interface javax.swing.tree.TreeModel
      • removeTreeModelListener

        public void removeTreeModelListener​(javax.swing.event.TreeModelListener l)
        Removes a TreeModelListener from this tree.
        Specified by:
        removeTreeModelListener in interface javax.swing.tree.TreeModel
      • valueForPathChanged

        public void valueForPathChanged​(javax.swing.tree.TreePath path,
                                        java.lang.Object newValue)
        Specified by:
        valueForPathChanged in interface javax.swing.tree.TreeModel
      • getColumnName

        public java.lang.String getColumnName​(int column)
        Returns the name of the given column.
        Specified by:
        getColumnName in interface TreeTableModel
      • getColumnClass

        public java.lang.Class<?> getColumnClass​(int column)
        Returns the type of value stored in the given column.
        Specified by:
        getColumnClass in interface TreeTableModel
      • getValueAt

        public java.lang.Object getValueAt​(java.lang.Object nodeObj,
                                           int column)
        Returns the value at the given cell.
        Specified by:
        getValueAt in interface TreeTableModel