|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
ilog.cpl.table.IlpAbstractTableModel
public abstract class IlpAbstractTableModel
Abstract class for table representation model.
It defines an arbitrary order for attributes needed by the
TableModel. This order is managed by listening to the
IlpExtendedAttributeGroup. Each new attribute is appended to the
list.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
IlpAbstractTableModel()
Creates a table model without attributes. |
|
IlpAbstractTableModel(IlpExtendedAttributeGroup attributeGroup)
Creates a table model with attributes from an attribute model. |
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.table.IlpTableModel |
|---|
getRow, getRowIndex |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getRowCount, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
|---|
public IlpAbstractTableModel()
public IlpAbstractTableModel(IlpExtendedAttributeGroup attributeGroup)
attributeGroup - The attribute model the table model uses; can be
null.| Method Detail |
|---|
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 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||