Class DefaultMutableTreeTableNode

  • All Implemented Interfaces:
    TreeNode, MutableTreeTableNode, TreeTableNode

    public class DefaultMutableTreeTableNode
    extends AbstractMutableTreeTableNode
    A default implementation of an AbstractMutableTreeTableNode that returns getUserObject().toString() for all value queries. This implementation is designed mainly for testing. It is NOT recommended to use this implementation. Any user that needs to create TreeTableNodes should consider directly extending AbstractMutableTreeTableNode or directly implementing the interface.
    Author:
    Karl Schaefer
    • Constructor Detail

      • DefaultMutableTreeTableNode

        public DefaultMutableTreeTableNode()
      • DefaultMutableTreeTableNode

        public DefaultMutableTreeTableNode​(Object userObject)
        Parameters:
        userObject -
      • DefaultMutableTreeTableNode

        public DefaultMutableTreeTableNode​(Object userObject,
                                           boolean allowsChildren)
        Parameters:
        userObject -
        allowsChildren -
    • Method Detail

      • getValueAt

        public Object getValueAt​(int column)
        Gets the value for this node that corresponds to a particular tabular column.
        Parameters:
        column - the column to query
        Returns:
        the value for the queried column
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns supported by this TreeTableNode.
        Returns:
        the number of columns this node supports