public class TypedMetaTableModel extends TypedTableModel implements MetaTableModel
Constructor and Description |
---|
TypedMetaTableModel() |
TypedMetaTableModel(int rowIncrement,
int columnIncrement) |
TypedMetaTableModel(String[] columnNames) |
TypedMetaTableModel(String[] columnNames,
Class[] columnClasses) |
TypedMetaTableModel(String[] columnNames,
Class[] columnClasses,
int rowCount) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(String name,
Class<?> type) |
DataAttributes |
getCellDataAttributes(int row,
int column)
Returns the meta-attribute as Java-Object.
|
DataAttributes |
getColumnAttributes(int column)
Returns the column-level attributes for the given column.
|
DataAttributes |
getTableAttributes()
Returns table-wide attributes.
|
boolean |
isCellDataAttributesSupported()
Checks, whether cell-data attributes are supported by this tablemodel implementation.
|
void |
setColumnAttribute(int column,
String metaAttributeDomain,
String metaAttributeId,
Object value) |
void |
setTableAttribute(String namespace,
String name,
Object value) |
addRow, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, setColumnName, setColumnType, setValueAt, toString
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
public TypedMetaTableModel()
public TypedMetaTableModel(int rowIncrement, int columnIncrement)
public TypedMetaTableModel(String[] columnNames)
public void addColumn(String name, Class<?> type)
addColumn
in class TypedTableModel
public DataAttributes getCellDataAttributes(int row, int column)
MetaTableModel
getCellDataAttributes
in interface MetaTableModel
row
- the row of the cell for which the meta-data is queried.column
- the index of the column for which the meta-data is queried.public boolean isCellDataAttributesSupported()
MetaTableModel
isCellDataAttributesSupported
in interface MetaTableModel
public void setColumnAttribute(int column, String metaAttributeDomain, String metaAttributeId, Object value)
public DataAttributes getColumnAttributes(int column)
MetaTableModel
getColumnAttributes
in interface MetaTableModel
column
- the column.public DataAttributes getTableAttributes()
MetaTableModel
getTableAttributes
in interface MetaTableModel