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
IlpTableRow s inserted in the table model. |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRow, getRowIndex
addTableModelListener, getRowCount, isCellEditable, removeTableModelListener, setValueAt
public 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 TableModel
public IlpAttribute getColumn(int columnIndex)
columnIndex
.getColumn
in interface IlpTableModel
columnIndex
- 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 IlpTableModel
column
- The column whose index is to be found.public List<IlpAttribute> getColumns()
getColumns
in interface IlpTableModel
public String getColumnName(int columnIndex)
columnIndex
. This is used
to initialize the table's column header name.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
columnIndex
- 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 TableModel
getColumnClass
in class AbstractTableModel
columnIndex
- The index of the column.public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
and
columnIndex
.getValueAt
in interface TableModel
rowIndex
- 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 IlpTableModel
null
.public void setAttributeGroup(IlpExtendedAttributeGroup attributeGroup)
IlpTableRow
s 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.