org.tbee.swing.table
Class TableModelWithLinenr
java.lang.Object
org.tbee.swing.table.TableModelWithLinenr
- All Implemented Interfaces:
- TableModel, TableModelForEdit
public class TableModelWithLinenr
- extends Object
- implements TableModelForEdit
This TableModel wrapper adds a row number column to the table.
Beware: Because the TableSorter links a table header index with the column index of the table model it is sorting,
it must be the outer TableModel wrapper (at least of the TableModels that add columns).
So TableSorter must wrap TableModelWithLinenr not vice versa.
TableSorter is aware of the RowNr class and handles it specially (by not sorting it).
- Version:
- $Revision: 1.14 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
TableModelWithLinenr
public TableModelWithLinenr(TableModel tableModel)
TableModelWithLinenr
public TableModelWithLinenr(TableModel tableModel,
String columnName)
getTableModel
public TableModel getTableModel()
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListener in interface TableModel
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- Specified by:
removeTableModelListener in interface TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface TableModel
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt in interface TableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable in interface TableModel
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface TableModel
addRowAt
public int addRowAt(int rowIndex)
- Specified by:
addRowAt in interface TableModelForEdit
deleteRowAt
public void deleteRowAt(int rowIndex)
- Specified by:
deleteRowAt in interface TableModelForEdit
getErrorMessageAt
public String getErrorMessageAt(int row,
int col)
- Specified by:
getErrorMessageAt in interface TableModelForEdit
getWarnMessageAt
public String getWarnMessageAt(int row,
int col)
- Specified by:
getWarnMessageAt in interface TableModelForEdit
Copyright © 2012 KnowledgePlaza. All Rights Reserved.