ilog.cpl.table
Interface IlpTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
IlpAbstractTableModel, IlpTableListModel

public interface IlpTableModel
extends TableModel

Defines the representation model for the IlpTableView.

Since:
JTGO 3.0

Method Summary
 IlpExtendedAttributeGroup getAttributeGroup()
          Returns the attribute group used by the table model.
 IlpAttribute getColumn(int columnIndex)
          Returns the attribute at index columnIndex.
 int getColumnIndex(IlpAttribute column)
          Returns the index of the specified column.
 List getColumns()
          Returns the list of attributes managed by the table model.
 IlpTableRow getRow(int index)
          Returns the row at the given index.
 int getRowIndex(IlpTableRow row)
          Returns the index of the specified row.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getRow

IlpTableRow getRow(int index)
Returns the row at the given index.

Returns:
The row at the given index.
Throws:
IndexOutOfBoundsException - if index is negative or greater than or equal to the number of rows.

getRowIndex

int getRowIndex(IlpTableRow row)
Returns the index of the specified row.

Parameters:
row - The row whose index is required.
Returns:
The index of the specified row; returns -1 if row is null or is not in the model.

getColumn

IlpAttribute getColumn(int columnIndex)
Returns the attribute at index columnIndex.

Parameters:
columnIndex - The index of the attribute to return.
Returns:
The attribute at index columnIndex.
Throws:
IndexOutOfBoundsException - if columnIndex is negative or greater than or equal to the number of columns.

getColumnIndex

int getColumnIndex(IlpAttribute column)
Returns the index of the specified column.

Parameters:
column - The column whose index is required.
Returns:
The index of the specified column; returns -1 if column is null or is not in the model.

getColumns

List getColumns()
Returns the list of attributes managed by the table model.

Returns:
The list of attributes managed by the table model.

getAttributeGroup

IlpExtendedAttributeGroup getAttributeGroup()
Returns the attribute group used by the table model. The attribute group comprises the columns which are initially visible in the table.

Returns:
The attribute group used by the table model; can be null.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.