Class SortedTableModel

java.lang.Object
wt.templateutil.table.SortedTableModel
All Implemented Interfaces:
TableModel, wt.services.applicationcontext.ApplicationContextChild, AddColumn, ColumnIdentifier, TableHeaderSetter, TableModelStub

public class SortedTableModel extends Object implements TableModelStub, AddColumn, TableHeaderSetter, wt.services.applicationcontext.ApplicationContextChild
Deprecated.
Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release.

This class is a wrapper for an instance of the javax.swing.table.TableModel class that performs sorting of the table data. It is used for PDMLink tables when sorting by column is enabled.

Supported API: true

Extendable: false
  • Method Details

    • setModel

      public void setModel(TableModel model)
      Deprecated.
      Sets the TableModel to be sorted

      Supported API: true
    • sortByColumn

      public void sortByColumn(int column, boolean ascending)
      Deprecated.
      Sorts the rows of the associated TableModel by a given column. If objects in column are instances of java.util.Comparator they will be sorted using the Comparator.compare() method. Otherwise, the objects will be converted to Strings and sorted alphanumerically.
      Parameters:
      column - number of the column to sort by
      ascending - true if rows should be sorted in ascending order; false if in descending order

      Supported API: true