wt.templateutil.table
Class SortedTableModel

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

Deprecated.

public class SortedTableModel
extends Object
implements TableModelStub, AddColumn, TableHeaderSetter, wt.services.applicationcontext.ApplicationContextChild

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 Summary
 void setModel(TableModel model)
          Deprecated.  
 void sortByColumn(int column, boolean ascending)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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