Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.controls.nicetable
Interface NiceTableModel

All Superinterfaces:
LegacyTableModel, javax.swing.table.TableModel
All Known Implementing Classes:
DefaultNiceTableModel

Deprecated. replaced by methods on GenericBaseTableModel.

@Deprecated
public interface NiceTableModel
extends javax.swing.table.TableModel, LegacyTableModel

NiceTableModel extends javax.swing.table.TableModel to provide support for the following additional features:


Method Summary
 int getColumnAlignment(int column)
          Deprecated. replaced by GenericTableModel.getColumnAlignment(int).
 java.util.Comparator getColumnSortComparator(int column)
          Deprecated. replaced by GenericBaseTableModel.getColumnSortComparator(int).

 

Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt

 

Method Detail

getColumnAlignment

@Deprecated
int getColumnAlignment(int column)
Deprecated. replaced by GenericTableModel.getColumnAlignment(int).
Get the alignment of the specified column in the table. Returns SwingConstants.LEFT, SwingConstants.RIGHT or SwingConstants.CENTER.
Specified by:
getColumnAlignment in interface LegacyTableModel
Parameters:
column - the column to get the alignment of
Returns:
SwingConstants.LEFT, SwingConstants.RIGHT or SwingConstants.CENTER

getColumnSortComparator

@Deprecated
java.util.Comparator getColumnSortComparator(int column)
Deprecated. replaced by GenericBaseTableModel.getColumnSortComparator(int).
Get the sort comparator to use for a particular column. The comparator returned should sort the rows in ascending order. A delegate comparator will be automatically used to sort in the opposite direction by NiceTable. If the class for the specified column implements the Comparable interface, then null may be returned.
Specified by:
getColumnSortComparator in interface LegacyTableModel
Returns:
a comparator to use for the specified column, or null to use the default.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.