Methods' Details |
addRow
void |
addRow( |
[in] any |
Heading, |
| [in] sequence< any > |
Data ); |
- Description
- adds a row to the model.
- Parameter Heading
- denotes the heading of the row.
- Parameter Data
- specifies the content of the row.
|
|
addRows
void |
addRows( |
[in] sequence< any > |
Headings, |
| [in] sequence< sequence< any > > |
Data ) |
raises( |
::com::sun::star::lang::IllegalArgumentException ); |
- Description
- adds multiple rows of data to the model.
- Parameter Headings
- denotes the headings of the to-be-added rows.
- Parameter Data
- specifies the data of the rows to be added.
- Throws
- ::com::sun::star::lang::IllegalArgumentException
if
Titles and Data are of different length.
|
|
removeRow
- Description
- removes a row of data from the model
- Parameter RowIndex
- the index of the row that should be removed.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if the given index is invalid
|
|
removeAllRows
- Description
- Removes all rows from the model.
|
|
updateCellData
- Description
- updates the content of the given cell
- Parameter ColumnIndex
- the column index of the to-be-updated cell
- Parameter RowIndex
- the row index of the to-be-updated cell
- Parameter Value
- the new value of the cell.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if the row or column index is invalid
|
|
updateRowData
- Description
- updates the content of a given row.
The change in the data model will be notified to registered listeners via
XGridDataListener::dataChanged. The GridDataEvent::FirstColumn and
GridDataEvent::LastColumn will denote the smallest respectively largest column
index from ColumnIndexes.
- Parameter ColumnIndexes
- contains the column indexes of the cells, which should be updated
- Parameter RowIndex
- contains the index of the row whose data is to be updated
- Parameter Values
- specifies the new values of the cells.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if one of the row indexes or the column index is invalid
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if the lengths of the
ColumnIndexes and Values sequences are not equal.
|
|
updateRowHeading
- Description
- sets a new title for a given row.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if the given index does not denote a valid row.
|
|
updateCellToolTip
|
updateRowToolTip
|
addGridDataListener
- Description
- registers listener to be notified of data changes in the model
- Parameter Listener
- specifies the listener to register
|
|
removeGridDataListener
- Description
- revokes a listener which was previously registered via addGridDataListener
- Parameter Listener
- specifies the listener to revoke.
|
|
Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.