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.ui.table
Class GenericBaseTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by oracle.javatools.ui.table.GenericBaseTableModel

All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, GenericTableModel
Direct Known Subclasses:
DefaultNiceTableModel

public abstract class GenericBaseTableModel
extends javax.swing.table.DefaultTableModel
implements GenericTableModel
Since:
11.1.2.0.0 (Sherman)
See Also:
Serialized Form

Field Summary

 

Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector

 

Fields inherited from class javax.swing.table.AbstractTableModel
listenerList

 

Constructor Summary
GenericBaseTableModel()
           
GenericBaseTableModel(java.lang.Object[][] data, java.lang.Object[] colNames)
           
GenericBaseTableModel(java.util.Vector data, java.util.Vector colNames)
           

 

Method Summary
 boolean canHide(int column)
          Get whether the column can be hidden by the user when column selector is available
 int getColumnAlignment(int column)
          Get the alignment of the specified column in the table.
 java.util.Comparator getColumnSortComparator(int column)
          Get the sort comparator to use for a particular column.
 boolean isCellEditable(int row, int column)
           

 

Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt

 

Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GenericBaseTableModel

public GenericBaseTableModel()

GenericBaseTableModel

public GenericBaseTableModel(java.lang.Object[][] data,
                             java.lang.Object[] colNames)

GenericBaseTableModel

public GenericBaseTableModel(java.util.Vector data,
                             java.util.Vector colNames)

Method Detail

getColumnAlignment

public int getColumnAlignment(int column)
Description copied from interface: GenericTableModel
Get the alignment of the specified column in the table. Returns SwingConstants.LEFT, SwingConstants.RIGHT or SwingConstants.CENTER.
Specified by:
getColumnAlignment in interface GenericTableModel
Parameters:
column - the column to get the alignment of
Returns:
SwingConstants.LEFT, SwingConstants.RIGHT or SwingConstants.CENTER

canHide

public boolean canHide(int column)
Description copied from interface: GenericTableModel
Get whether the column can be hidden by the user when column selector is available
Specified by:
canHide in interface GenericTableModel
Parameters:
column - the column to get the hidden property of
Returns:
true or false

getColumnSortComparator

public java.util.Comparator getColumnSortComparator(int column)
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.
Returns:
a comparator to use for the specified column, or null to use the default.

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel

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.