Class AbstractTableDataModel

    • Constructor Detail

      • AbstractTableDataModel

        public AbstractTableDataModel()
        Deprecated.
    • Method Detail

      • getRowHeader

        public String getRowHeader​(int row)
        Deprecated.
        Row header text is not used by default.
        Specified by:
        getRowHeader in interface TableDataModel
        Parameters:
        row - ignored.
        Returns:
        null.
      • sort

        public int[] sort​(int col,
                          boolean ascending)
        Deprecated.
        This model does not support the concept of sorting by default. Subclasses will need to override this method and isSortable(int) to support sorting.
        Specified by:
        sort in interface TableDataModel
        Parameters:
        col - ignored.
        ascending - ignored.
        Returns:
        null
      • setValueAt

        public void setValueAt​(Object value,
                               int row,
                               int col)
        Deprecated.
        This model does not support the concept of editable cells by default. Subclasses will need to override this method and isCellEditable(int, int) to support cell editing.
        Specified by:
        setValueAt in interface TableDataModel
        Parameters:
        value - ignored.
        row - ignored.
        col - ignored.
      • isSortable

        public boolean isSortable​(int col)
        Deprecated.
        This model does not support the concept of sorting by default. Subclasses will need to override this method and sort(int, boolean) to support sorting.
        Specified by:
        isSortable in interface TableDataModel
        Parameters:
        col - ignored.
        Returns:
        false.
      • isDisabled

        public boolean isDisabled​(int row)
        Deprecated.
        This model does not support the concept of row disabling by default. Subclasses will need to override this method to support row disabling.
        Specified by:
        isDisabled in interface TableDataModel
        Parameters:
        row - ignored.
        Returns:
        false.
      • isSelectable

        public boolean isSelectable​(int row)
        Deprecated.
        This model does not support the concept of row selectability by default. Subclasses will need to override this method disable selection of specific rows.
        Specified by:
        isSelectable in interface TableDataModel
        Parameters:
        row - ignored.
        Returns:
        true.
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int col)
        Deprecated.
        This model does not support the concept of editable cells by default. Subclasses will need to override this method and setValueAt(Object, int, int) to support cell editing.
        Specified by:
        isCellEditable in interface TableDataModel
        Parameters:
        row - ignored.
        col - ignored.
        Returns:
        false.
      • getFilterValues

        public List<String> getFilterValues​(int row)
        Deprecated.
        This model does not support the concept of row filtering by default. Subclasses will need to override this method to support row filtering.
        Specified by:
        getFilterValues in interface TableDataModel
        Parameters:
        row - ignored.
        Returns:
        false.
      • sort

        protected int[] sort​(Comparator<Object> comparator,
                             int col,
                             boolean ascending)
        Deprecated.
        Calculates the sort order for the data, using the given column and comparator.
        Parameters:
        comparator - the comparator to use for sorting
        col - the column to sort on
        ascending - true for an ascending sort, false for descending.
        Returns:
        the row indices in sort order.