|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.table.SortedTableModel
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
Field Summary | |
private static String |
ACTION
Deprecated. |
private ApplicationContext |
applicationContext
Deprecated. |
(package private) boolean |
ascending
Deprecated. |
private HashMap |
comparatorMapping
Deprecated. |
(package private) int |
compares
Deprecated. |
(package private) int[] |
indexes
Deprecated. |
(package private) TableModel |
model
Deprecated. |
private static String |
SERVICE_NAME
Deprecated. |
(package private) int |
sortingColumn
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
SortedTableModel()
Deprecated. |
Method Summary | |
void |
addColumn(Properties props)
Deprecated. Adds a new Column to the TableModel. |
void |
addTableModelListener(TableModelListener l)
Deprecated. Supported API: true |
void |
checkModel()
Deprecated. |
int |
compare(int row1,
int row2)
Deprecated. |
int |
compareRowsByColumn(int row1,
int row2,
int column)
Deprecated. |
ApplicationContextServices |
getApplContextServices()
Deprecated. |
ApplicationContext |
getApplicationContext()
Deprecated. Gets the object for the association that plays role: APPLICATION_CONTEXT. |
Class |
getColumnClass(int columnIndex)
Deprecated. Supported API: true |
int |
getColumnCount()
Deprecated. Supported API: true |
String |
getColumnName(int columnIndex)
Deprecated. Returns name of the HTML table column for the column index passed in as input parameter. |
protected Comparator |
getComparator(Object key)
Deprecated. |
Comparator |
getComparatorFromApplicationContext(Object target)
Deprecated. |
Object |
getIdentifier(int columnIndex)
Deprecated. Returns the name/handle of the column at columnIndex. |
int |
getRowCount()
Deprecated. Supported API: true |
TableModel |
getTableModel()
Deprecated. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Deprecated. Supported API: true |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Deprecated. Supported API: true |
(package private) void |
merge(int[] a,
int f,
int mid,
int l)
Deprecated. |
(package private) void |
mergeSort(int[] a,
int f,
int l)
Deprecated. |
void |
reallocateIndexes()
Deprecated. |
void |
removeTableModelListener(TableModelListener l)
Deprecated. Supported API: true |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Deprecated. Sets the object for the association that plays role: APPLICATION_CONTEXT. |
void |
setHeaderFromResource(String resourceBundleName,
String resourceBundleKey,
Object columnId)
Deprecated. Sets the value returned from the getColumnName method for the column with name/handle columnId to be the localized String returned for the resource key, resourceBundleKey, from the resource bundle, resourceBundleName. |
void |
setHeaderFromTargetClass(String targetClassName,
Object columnId)
Deprecated. Sets the class that introspection is done on when the name/handle of the column is used to define the Column Name. |
void |
setModel(TableModel model)
Deprecated. |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex)
Deprecated. Supported API: true |
void |
sort(int[] target)
Deprecated. |
void |
sort(Object sender)
Deprecated. |
void |
sortByColumn(int column)
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 |
Field Detail |
private static final boolean VERBOSE
int[] indexes
int sortingColumn
boolean ascending
int compares
TableModel model
private HashMap comparatorMapping
private ApplicationContext applicationContext
private static final String SERVICE_NAME
private static final String ACTION
Constructor Detail |
public SortedTableModel()
Method Detail |
public void setModel(TableModel model)
public int compareRowsByColumn(int row1, int row2, int column)
public int compare(int row1, int row2)
public void reallocateIndexes()
public void checkModel()
public void sort(Object sender)
public void sortByColumn(int column)
public void sortByColumn(int column, boolean ascending)
column
- number of the column to sort byascending
- true if rows should be sorted in ascending order; false if in descending order
public void addTableModelListener(TableModelListener l)
TableModelStub
addTableModelListener
in interface TableModelStub
l
- public Class getColumnClass(int columnIndex)
TableModelStub
getColumnClass
in interface TableModelStub
columnIndex
-
public int getColumnCount()
TableModelStub
getColumnCount
in interface TableModelStub
public String getColumnName(int columnIndex)
TableModelStub
getColumnName
in interface TableModelStub
columnIndex
-
public int getRowCount()
TableModelStub
getRowCount
in interface TableModelStub
public Object getValueAt(int rowIndex, int columnIndex)
TableModelStub
getValueAt
in interface TableModelStub
rowIndex
- columnIndex
-
public boolean isCellEditable(int rowIndex, int columnIndex)
TableModelStub
isCellEditable
in interface TableModelStub
rowIndex
- columnIndex
-
public void removeTableModelListener(TableModelListener l)
TableModelStub
removeTableModelListener
in interface TableModelStub
l
- public void setValueAt(Object value, int rowIndex, int columnIndex)
TableModelStub
setValueAt
in interface TableModelStub
value
- rowIndex
- columnIndex
- public void setHeaderFromResource(String resourceBundleName, String resourceBundleKey, Object columnId)
TableHeaderSetter
This is a convenience method to allow overriding the either the
display name for an attribute or to allow setting the title on a column
when the name/handle of the column is not an attribute of the BinaryLink
or OtherSide object.
Supported API: true
setHeaderFromResource
in interface TableHeaderSetter
resourceBundleName
- resourceBundleKey
- columnId
- public void setHeaderFromTargetClass(String targetClassName, Object columnId)
TableHeaderSetter
setHeaderFromTargetClass
in interface TableHeaderSetter
targetClassName
- columnId
- public void addColumn(Properties props) throws WTException
AddColumn
addColumn
in interface AddColumn
props
-
WTException
public Object getIdentifier(int columnIndex)
ColumnIdentifier
getIdentifier
in interface ColumnIdentifier
columnIndex
-
public TableModel getTableModel()
protected Comparator getComparator(Object key)
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
ApplicationContextChild
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
public Comparator getComparatorFromApplicationContext(Object target)
public ApplicationContext getApplicationContext()
ApplicationContextChild
getApplicationContext
in interface ApplicationContextChild
public ApplicationContextServices getApplContextServices()
public void sort(int[] target)
void mergeSort(int[] a, int f, int l)
void merge(int[] a, int f, int mid, int l)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |