ilog.cpl.table
Interface IlpAbstractTableColumnModel

All Known Implementing Classes:
IlpTableColumnModel

public interface IlpAbstractTableColumnModel

A facade for the Swing or Web Components calls in the table column model.

Since:
JTGO 3.0

Method Summary
 void addNewColumn(int modelIndex, Object headerValue)
          Adds a new column in the column model with the following index and header value.
 int getColumnIndex(IlpAttribute attribute)
          Returns the column index of the specified attribute.
 void removeAllColumns()
          Removes the columns from the column model.
 void removeColumn(int modelIndex)
          Removes a column of index modelIndex
 void setColumnIndex(IlpAttribute attribute, int index)
          Moves the column of the specified attribute to the specified index.
 void setColumnPreferredWidth(IlpAttribute attribute, int columnWidth)
          Sets the preferred width for the column defined by this attribute
 

Method Detail

setColumnIndex

void setColumnIndex(IlpAttribute attribute,
                    int index)
Moves the column of the specified attribute to the specified index.

Parameters:
attribute - The attribute corresponding to the column which has to be moved.
index - The new index for the column.
Throws:
IllegalArgumentException - if the given attribute does not correspond to a visible column in the table.
IndexOutOfBoundsException - if the given position is greater than the index of the last column or less than 0.

getColumnIndex

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

Parameters:
attribute - The attribute whose column index is to be returned.
Returns:
-1 if the given attribute does not correspond to a visible column in the table view.

removeAllColumns

void removeAllColumns()
Removes the columns from the column model.


addNewColumn

void addNewColumn(int modelIndex,
                  Object headerValue)
Adds a new column in the column model with the following index and header value.


removeColumn

void removeColumn(int modelIndex)
Removes a column of index modelIndex

Parameters:
modelIndex - index of the column to be removed

setColumnPreferredWidth

void setColumnPreferredWidth(IlpAttribute attribute,
                             int columnWidth)
Sets the preferred width for the column defined by this attribute



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