LibreOffice
LibreOffice 24.8 SDK API Reference
 
Loading...
Searching...
No Matches
XGridRowSelection Interface Referencepublished

This interfaces provides access to the selection of row for UnoControlGrid. More...

import "XGridRowSelection.idl";

Inheritance diagram for XGridRowSelection:
UnoControlGrid

Public Member Functions

void selectAllRows ()
 Selects all rows.
 
void selectRow ([in] long RowIndex) raises ( ::com::sun::star::lang::IndexOutOfBoundsException )
 selects a given row
 
void deselectAllRows ()
 Deselects all selected rows.
 
void deselectRow ([in] long RowIndex) raises ( ::com::sun::star::lang::IndexOutOfBoundsException )
 removes the selection for a given row
 
sequence< long > getSelectedRows ()
 Returns the indices of all selected rows.
 
boolean hasSelectedRows ()
 Returns whether rows are selected.
 
boolean isRowSelected ([in] long RowIndex)
 Returns whether a specific row is selected.
 
void addSelectionListener ([in] XGridSelectionListener listener)
 Adds a listener for the GridSelectionEvent posted after the grid changes.
 
void removeSelectionListener ([in] XGridSelectionListener listener)
 Removes a listener previously added with addSelectionListener().
 

Detailed Description

This interfaces provides access to the selection of row for UnoControlGrid.

Since
LibreOffice 3.4

Member Function Documentation

◆ addSelectionListener()

void addSelectionListener ( [in] XGridSelectionListener listener)

Adds a listener for the GridSelectionEvent posted after the grid changes.

Parameters
listenerthe listener to add.

◆ deselectAllRows()

void deselectAllRows ( )

Deselects all selected rows.

◆ deselectRow()

void deselectRow ( [in] long RowIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException )

removes the selection for a given row

Parameters
RowIndexdenotes the index of the row to deselect

◆ getSelectedRows()

sequence< long > getSelectedRows ( )

Returns the indices of all selected rows.

Returns
a sequence of indices.

◆ hasSelectedRows()

boolean hasSelectedRows ( )

Returns whether rows are selected.

Returns
TRUE if and only if at least one row is selected.

◆ isRowSelected()

boolean isRowSelected ( [in] long RowIndex)

Returns whether a specific row is selected.

Parameters
RowIndexthe index of a row. If the value does not denote a valid row index, i.e. is smaller than 0 or greater than the number of rows, this is silently ignored, and FALSE is returned.
Returns
TRUE if and only if there is a row with the given index, and it is selected currently.

◆ removeSelectionListener()

void removeSelectionListener ( [in] XGridSelectionListener listener)

Removes a listener previously added with addSelectionListener().

Parameters
listenerthe listener to remove.

◆ selectAllRows()

void selectAllRows ( )

Selects all rows.

◆ selectRow()

void selectRow ( [in] long RowIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException )

selects a given row

Parameters
RowIndexdenotes the index of the row to select
Exceptions
com::sun::star::lang::IndexOutOfBoundsExceptionif RowIndex does not denote a valid row index

The documentation for this interface was generated from the following file: