Methods' Details |
getColumnCount
- Description
- Returns the number of columns.
- Returns
- the number of columns.
|
|
createColumn
- Description
- creates a new column for use with the column model.
The newly created column is not yet inserted into the column container, you need to call addColumn
after you initialized the column object.
|
|
addColumn
- Description
- Adds a column to the model.
You should use the createColumn member to create a new column. This gives
implementations of the XGridColumnModel interface the possibility to provide own column
implementations which extend the basic GridColumn type.
As soon as the column has been inserted into the model, the model takes ownership of it. This means when the
column is removed, or when the column model is disposed, the grid column is disposed as well.
- Parameter column
- the column to add to the model.
- Returns
- the index of new created column.
- Throws
- ::com::sun::star::lang::IllegalArgumentException
if the given column is not a valid element for the column container, or if it is NULL.
|
|
removeColumn
- Description
- removes a column from the model
The column object will be disposed upon removal.
- Parameter ColumnIndex
- denotes the index of the column to remove
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if
ColumnIndex does not denote a valid column index.
|
|
getColumns
- Description
- Returns all columns of the model.
- Returns
- all columns associated with the model in a sequence of XGridColumn.
|
|
getColumn
- Description
- Returns a specific column.
- Parameter index
- the position of the requested column.
- Returns
- the requested column.
|
|
setDefaultColumns
void |
setDefaultColumns( |
[in] long |
elements ); |
- Description
- Fills the model with the given number of default columns
Existing columns will be removed before adding new columns. Listeners at the column model will
be notified one ::com::sun::star::container::XContainerListener::elementRemoved event
for each removed column, and one ::com::sun::star::container::XContainerListener::elementInserted
event for each insertion.
- Parameter elements
- the number of default columns that should be set.
|
|
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.