:: 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.
Since
OOo 3.3.0

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.  
setDefaultColumns Sets default columns to the column model.  
copyColumn Creates new XGridColumn with the settings of other column. To be used if the columns which are added to the column model have the same settings.  
Attributes' Summary
ColumnHeaderHeight Specifies the height of column header.  
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 requested column.
Returns
the requested column.
setDefaultColumns
void
setDefaultColumns( [in] long  elements );

Description
Sets default columns to the column model.
Parameter elements
the number of default columns that should be set.
copyColumn
XGridColumn
copyColumn( [in] XGridColumn  column );

Description
Creates new XGridColumn with the settings of other column. To be used if the columns which are added to the column model have the same settings.
Parameter column
the column, which is already created
Attributes' Details
ColumnHeaderHeight
long ColumnHeaderHeight;
Description
Specifies the height of column header.
Top of Page