public abstract class AbstractAttributeTableModel extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected AttributeInfo |
attribute
The associated attribute.
|
protected static int |
BASE_COLUMN_COUNT
Number of default columns.
|
listenerList| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAttributeTableModel(AttributeInfo attribute)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class |
doGetColumnClass(int column)
Attribute specific getColumnClass().
|
protected abstract String |
doGetColumnName(int column)
Attribute specific getColumnName().
|
protected abstract Object |
doGetValueAt(int row,
int column)
Attribute specific getValueAt().
|
Class |
getColumnClass(int column) |
String |
getColumnName(int column) |
abstract int |
getColumnWidth(int column)
Get the width of a specified column in pixels.
|
TableColumnModel |
getTableColumnModel()
Get the associated table column model.
|
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
link(int row,
int column)
Link to the destination described by the target of the hyperlink
contained in a specific cell.
|
void |
setTableColumnModel(TableColumnModel tableColumnModel)
Set the associated table column model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getRowCountprotected static final int BASE_COLUMN_COUNT
protected AttributeInfo attribute
protected AbstractAttributeTableModel(AttributeInfo attribute)
attribute - the associated attribute.public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic Object getValueAt(int row, int column)
public TableColumnModel getTableColumnModel()
public void setTableColumnModel(TableColumnModel tableColumnModel)
tableColumnModel - the modelpublic abstract int getColumnWidth(int column)
column - the index ofthe column in the table modelprotected abstract Object doGetValueAt(int row, int column)
row - the row numbercolumn - the column numberprotected abstract String doGetColumnName(int column)
column - the column numberprotected abstract Class doGetColumnClass(int column)
column - the column numberpublic void link(int row,
int column)
row - the row number of the hyperlinkcolumn - the column number of the hyperlink