public abstract class IlpAbstractTableModel extends AbstractTableModel implements IlpTableModel
TableModel. This order is managed by listening to the
IlpExtendedAttributeGroup. Each new attribute is appended to the
list.listenerList| Constructor and Description |
|---|
IlpAbstractTableModel()
Creates a table model without attributes.
|
IlpAbstractTableModel(IlpExtendedAttributeGroup attributeGroup)
Creates a table model with attributes from an attribute model.
|
| Modifier and Type | Method and Description |
|---|---|
IlpExtendedAttributeGroup |
getAttributeGroup()
Returns the attribute group used by the table model.
|
IlpAttribute |
getColumn(int columnIndex)
Returns the attribute at index
columnIndex. |
Class<?> |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values
in the column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
int |
getColumnIndex(IlpAttribute column)
Returns the index of the specified column.
|
String |
getColumnName(int columnIndex)
Returns the name of the column at
columnIndex. |
List<IlpAttribute> |
getColumns()
Returns the list of attributes managed by the table model.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
rowIndex and
columnIndex. |
void |
setAttributeGroup(IlpExtendedAttributeGroup attributeGroup)
Sets the attribute model used to describe the attributes of the
IlpTableRows inserted in the table model. |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRow, getRowIndexaddTableModelListener, getRowCount, isCellEditable, removeTableModelListener, setValueAtpublic IlpAbstractTableModel()
public IlpAbstractTableModel(IlpExtendedAttributeGroup attributeGroup)
attributeGroup - The attribute model the table model uses; can be
null.public int getColumnCount()
IlpTableView
uses this method to determine how many columns it should create
and display by default.getColumnCount in interface TableModelpublic IlpAttribute getColumn(int columnIndex)
columnIndex.getColumn in interface IlpTableModelcolumnIndex - The index of the attribute to return.columnIndex.IndexOutOfBoundsException - if columnIndex is negative
or greater than or equal to the number of columns.public int getColumnIndex(IlpAttribute column)
getColumnIndex in interface IlpTableModelcolumn - The column whose index is to be found.public List<IlpAttribute> getColumns()
getColumns in interface IlpTableModelpublic String getColumnName(int columnIndex)
columnIndex. This is used
to initialize the table's column header name.getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumnIndex - The index of the column.null if column is invalid.public Class<?> getColumnClass(int columnIndex)
JTable object to set up
a default renderer and editor for the column.getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - The index of the column.public Object getValueAt(int rowIndex, int columnIndex)
rowIndex and
columnIndex.getValueAt in interface TableModelrowIndex - The row whose value is to be queried.columnIndex - The column whose value is to be queried.Object at the specified cell
or null if row or column are invalid.public IlpExtendedAttributeGroup getAttributeGroup()
getAttributeGroup in interface IlpTableModelnull.public void setAttributeGroup(IlpExtendedAttributeGroup attributeGroup)
IlpTableRows inserted in the table model. The current table model
listens to this attribute model.attributeGroup - The attribute model used by the table model;
can be null.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.