public abstract class AbstractAttributeTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected AttributeInfo |
attribute
The associated attribute.
|
protected static int |
BASE_COLUMN_COUNT
Number of default columns.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAttributeTableModel(AttributeInfo attribute)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Class |
doGetColumnClass(int column)
Attribute specific getColumnClass().
|
protected abstract java.lang.String |
doGetColumnName(int column)
Attribute specific getColumnName().
|
protected abstract java.lang.Object |
doGetValueAt(int row,
int column)
Attribute specific getValueAt().
|
java.lang.Class |
getColumnClass(int column) |
java.lang.String |
getColumnName(int column) |
abstract int |
getColumnWidth(int column)
Get the width of a specified column in pixels.
|
javax.swing.table.TableColumnModel |
getTableColumnModel()
Get the associated table column model.
|
java.lang.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(javax.swing.table.TableColumnModel tableColumnModel)
Set the associated table column model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
protected 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 javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int column)
public javax.swing.table.TableColumnModel getTableColumnModel()
public void setTableColumnModel(javax.swing.table.TableColumnModel tableColumnModel)
tableColumnModel
- the modelpublic abstract int getColumnWidth(int column)
column
- the index ofthe column in the table modelprotected abstract java.lang.Object doGetValueAt(int row, int column)
row
- the row numbercolumn
- the column numberprotected abstract java.lang.String doGetColumnName(int column)
column
- the column numberprotected abstract java.lang.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