Class SimpleBeanTreeTableDataModel

    • Field Detail

      • COMPARABLE_COMPARATOR

        public static final ComparableComparator COMPARABLE_COMPARATOR
        Deprecated.
        A simple comparator that compares comparables, for use in sorting e.g. columns containing Strings.
    • Constructor Detail

      • SimpleBeanTreeTableDataModel

        public SimpleBeanTreeTableDataModel​(String[] properties,
                                            TableTreeNode root)
        Deprecated.
        Creates a SimpleBeanBasedTableDataModel containing the given data.
        Parameters:
        properties - the bean properties for each column.
        root - the tree root node.
    • Method Detail

      • setComparator

        public void setComparator​(int col,
                                  Comparator comparator)
        Deprecated.
        Sets the comparator for the given column, to enable sorting.
        Parameters:
        col - the column to set the comparator on.
        comparator - the comparator to set.
      • getValueAt

        public Object getValueAt​(TableTreeNode row,
                                 int col)
        Deprecated.
        Retrieves the value at the given row and column.
        Parameters:
        row - - the tree node for the row.
        col - - the column index.
        Returns:
        the value at the given row and column.
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int col)
        Deprecated.
        Indicates whether the given cell is editable. This model only supports editability at a global level. See setEditable(boolean).
        Specified by:
        isCellEditable in interface TableDataModel
        Overrides:
        isCellEditable in class AbstractTreeTableDataModel
        Parameters:
        row - ignored.
        col - ignored.
        Returns:
        true if the table is globally editable, false otherwise.
      • isEditable

        public boolean isEditable()
        Deprecated.
        Indicates whether the data in this model is editable.
        Returns:
        true if the data in this model is editable, false otherwise.
      • setEditable

        public void setEditable​(boolean editable)
        Deprecated.
        Sets whether the data in this model is editable. By default, the data is not editable.
        Parameters:
        editable - true if the data is editable, false if it is read-only.