Interface TreeTableModel

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getColumnClass​(int column)
      Returns the type (class) of a column.
      int getColumnCount()
      Returns the number of available columns.
      java.lang.String getColumnName​(int column)
      Returns the column name.
      java.lang.Object getValueAt​(java.lang.Object node, int column)
      Returns the value of a node in a column.
      boolean isCellEditable​(java.lang.Object node, int column)
      Check if a cell of a node in one column is editable.
      void setValueAt​(java.lang.Object aValue, java.lang.Object node, int column)
      Sets a value for a node in one column.
      • Methods inherited from interface javax.swing.tree.TreeModel

        addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
    • Method Detail

      • getColumnCount

        int getColumnCount()
        Returns the number of available columns.
        Returns:
        Number of Columns
      • getColumnName

        java.lang.String getColumnName​(int column)
        Returns the column name.
        Parameters:
        column - Column number
        Returns:
        Column name
      • getColumnClass

        java.lang.Class<?> getColumnClass​(int column)
        Returns the type (class) of a column.
        Parameters:
        column - Column number
        Returns:
        Class
      • getValueAt

        java.lang.Object getValueAt​(java.lang.Object node,
                                    int column)
        Returns the value of a node in a column.
        Parameters:
        node - Node
        column - Column number
        Returns:
        Value of the node in the column
      • isCellEditable

        boolean isCellEditable​(java.lang.Object node,
                               int column)
        Check if a cell of a node in one column is editable.
        Parameters:
        node - Node
        column - Column number
        Returns:
        true/false
      • setValueAt

        void setValueAt​(java.lang.Object aValue,
                        java.lang.Object node,
                        int column)
        Sets a value for a node in one column.
        Parameters:
        aValue - New value
        node - Node
        column - Column number