:: com :: sun :: star :: awt :: grid ::

unpublished interface XGridColumnModel
Usage Restrictions
not published
Description
An instance of this interface is used by the UnoControlGrid to retrieve the column structure that is displayed in the actual control. If you do not need your own model implementation, you can also use the DefaultGridColumnModel.

Methods' Summary
getColumnCount Returns the number of columns.  
addColumn Adds a column to the model.  
getColumns Returns all columns of the model.  
getColumn Returns a specific column.  
addColumnListener Adds a listener for the GridColumnEvent posted after the grid changes.  
removeColumnListener Removes a listener previously added with addColumnListener().  
Attributes' Summary
ColumnSelectionAllowed Specifies whether column selection is allowed  
Methods' Details
getColumnCount
long
getColumnCount();

Description
Returns the number of columns.
Returns
the number of columns.
addColumn
long
addColumn( [in] XGridColumn  column );

Description
Adds a column to the model.
Parameter column
the column to add to the model.
Returns
the index of new created column.
getColumns
sequence< XGridColumn >
getColumns();

Description
Returns all columns of the model.
Returns
all columns associated with the model in a sequence of XGridColumn.
getColumn
XGridColumn
getColumn( [in] long  index );

Description
Returns a specific column.
Parameter index
the position of the reuquested column.
Returns
the requested column.
addColumnListener
[oneway] void
addColumnListener( [in] XGridColumnListener  listener );

Description
Adds a listener for the GridColumnEvent posted after the grid changes.
Parameter Listener
the listener to add.
removeColumnListener
[oneway] void
removeColumnListener( [in] XGridColumnListener  listener );

Description
Removes a listener previously added with addColumnListener().
Parameter Listener
the listener to remove.
Attributes' Details
ColumnSelectionAllowed
boolean ColumnSelectionAllowed;
Description
Specifies whether column selection is allowed
Top of Page