Methods' Details |
addRow
void |
addRow( |
[in] any |
Heading, |
| [in] sequence< any > |
Data ); |
- Description
- appends 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
- appends 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.
|
|
insertRow
- Description
- inserts a row into the set of data rows
- Parameter Index
- denotes the position at which the row is to be inserted
- Parameter Heading
- denotes the heading of the row.
- Parameter Data
- specifies the content of the row.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if
Index is smaller than 0 or greater than the number of
rows in the model.
|
|
insertRows
- Description
- inserts multiple rows of data into the model.
- Parameter Index
- denotes the position at which the rows are to be inserted
- 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.
- Throws
- ::com::sun::star::lang::IndexOutOfBoundsException
if
Index is smaller than 0 or greater than the number of
rows in the model.
|
|
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 .
- 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::IllegalArgumentException
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 © 2013, 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.