public abstract class GenericBaseTableModel extends javax.swing.table.DefaultTableModel implements GenericTableModel
Constructor and Description |
---|
GenericBaseTableModel() |
GenericBaseTableModel(java.lang.Object[][] data,
java.lang.Object[] colNames) |
GenericBaseTableModel(java.util.Vector data,
java.util.Vector colNames) |
Modifier and Type | Method and Description |
---|---|
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) |
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
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public GenericBaseTableModel()
public GenericBaseTableModel(java.lang.Object[][] data, java.lang.Object[] colNames)
public GenericBaseTableModel(java.util.Vector data, java.util.Vector colNames)
public int getColumnAlignment(int column)
GenericTableModel
getColumnAlignment
in interface GenericTableModel
column
- the column to get the alignment ofpublic boolean canHide(int column)
GenericTableModel
canHide
in interface GenericTableModel
column
- the column to get the hidden property ofpublic java.util.Comparator getColumnSortComparator(int column)
Comparable
interface, then null
may be
returned.public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel