Content for OpenOffice.org version 3.3.
:: com :: sun :: star :: awt :: grid ::
|
| unpublished |
interface XGridDataModel |
|
|
- Base Interfaces
XGridDataModel
┗ ::com::sun::star::lang::XComponent
| ::com::sun::star::lang::XComponent |
- (referenced interface's summary:)
- allows to exclicitly free resources and break cyclic references.
|
|
- Usage Restrictions
- not published
- Description
- An instance of this interface is used by the UnoControlGrid to
retrieve the content data that is displayed in the actual control.
If you do not need your own model implementation, you can also use the DefaultGridDataModel.
- Since
- OOo 3.3.0
|
| Attributes' Summary |
| RowHeight |
Specifies the height of each row.
|
| RowHeaders |
Contains the row header.
|
| Data |
Returns the content of each row.
|
| RowHeaderWidth |
Specifies the width of row header.
|
| Methods' Details |
getRowCount
- Description
- Returns the number of rows in in the model.
- Returns
- the number of rows.
|
|
addRow
| void |
| addRow( |
[in] string |
headername, |
| [in] sequence< any > |
data ); |
- Description
- Adds a row to the model.
- Parameter headername
- specifies the name of the row.
- Parameter data
- the content of the row.
|
|
removeRow
| void |
| removeRow( |
[in] long |
index ); |
- Description
- Removes a row from the model.
- Parameter index
- the index of the row that should be removed.
|
|
removeAll
- Description
- Removes all rows from the model.
|
|
updateCell
| void |
| updateCell( |
[in] long |
row, |
| [in] long |
column, |
| [in] any |
value ); |
- Description
- Updates the content of a given cell.
- Parameter row
- the row index
- Parameter column
- the column index
- Parameter value
- the new value of the cell.
|
|
updateRow
| void |
| updateRow( |
[in] long |
row, |
| [in] sequence< long > |
columns, |
| [in] sequence< any > |
values ); |
- Description
- Updates the content of a given row.
- Parameter row
- the row index
- Parameter columns
- column indexes of the cells, which should be updated
- Parameter value
- the new values of the cells.
|
|
addDataListener
- Description
- Adds a listener for the GridDataEvent posted after the grid changes.
- Parameter Listener
- the listener to add.
|
|
removeDataListener
- Description
- Removes a listener previously added with addDataListener().
- Parameter Listener
- the listener to remove.
|
|
| Attributes' Details |
RowHeight
long RowHeight;
- Description
- Specifies the height of each row.
|
|
RowHeaders
sequence< string > RowHeaders;
- Description
- Contains the row header.
|
|
Data
[ readonly ] sequence< sequence< any > > Data;
- Description
- Returns the content of each row.
|
|
RowHeaderWidth
long RowHeaderWidth;
- Description
- Specifies the width of row header.
|
|
Top of Page
Copyright © 1995, 2010, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.