Interface TreeTableModel

  • All Implemented Interfaces:
    javax.swing.table.TableModel

    
    public interface TreeTableModel
     implements TableModel
                        

    This is a basic interface for TreeTableModel that extends TableModel. It's pretty minimal and isn't as full featured at other implementations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Object getValueAt(Object node, int col) The method is similar to getValueAt(int,int).
      abstract boolean isCellEditable(Object node, int col) the method is similar to isCellEditable(int,int).
      abstract void setValueAt(Object val, Object node, int column) the method is similar to isCellEditable(int,int).
      • Methods inherited from class javax.swing.table.TableModel

        addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getValueAt

         abstract Object getValueAt(Object node, int col)

        The method is similar to getValueAt(int,int). Instead of int, the row is an object.

        Parameters:
        node - the node which value is to be fetched
        col - the column of the node
        Returns:

        the value at the column

      • isCellEditable

         abstract boolean isCellEditable(Object node, int col)

        the method is similar to isCellEditable(int,int). Instead of int, the row is an object.

        Parameters:
        node - the node which value is to be fetched
        col - the column of the node
        Returns:

        true if cell is editable

      • setValueAt

         abstract void setValueAt(Object val, Object node, int column)

        the method is similar to isCellEditable(int,int). Instead of int, the row is an object.

        Parameters:
        val - the value to be set
        node - the node which value is to be set
        column - the column of the node