:: com :: sun :: star :: awt :: grid ::

unpublished interface XGridSelection
Usage Restrictions
not published
Description
This interfaces provides access to the selection of row for UnoControlGrid.

Methods' Summary
selectAllRows Selects all rows.  
selectRow selects a given row  
deselectAllRows Deselects all selected rows.  
deselectRow removes the selection for a given row  
getSelection Returns the indices of all selected rows.  
isSelectionEmpty Returns whether rows are selected.  
isSelectedIndex Returns whether a specific row is selected.  
addSelectionListener Adds a listener for the GridSelectionEvent posted after the grid changes.  
removeSelectionListener Removes a listener previously added with addSelectionListener().  
Methods' Details
selectAllRows
void
selectAllRows();

Description
Selects all rows.
selectRow
void
selectRow( [in] long  RowIndex );

Description
selects a given row
Parameter RowIndex
denotes the index of the row to select
deselectAllRows
void
deselectAllRows();

Description
Deselects all selected rows.
deselectRow
void
deselectRow( [in] long  RowIndex );

Description
removes the selection for a given row
Parameter RowIndex
denotes the index of the row to deselect
getSelection
sequence< long >
getSelection();

Description
Returns the indices of all selected rows.
Returns
a sequence of indices.
isSelectionEmpty
boolean
isSelectionEmpty();

Description
Returns whether rows are selected.
Returns
true if rows are selected otherwise false.
isSelectedIndex
boolean
isSelectedIndex( [in] long  index );

Description
Returns whether a specific row is selected.
Parameter the
index of a row.
Returns
true if row are selected otherwise false.
addSelectionListener
void
addSelectionListener( [in] XGridSelectionListener  listener );

Description
Adds a listener for the GridSelectionEvent posted after the grid changes.
Parameter listener
the listener to add.
removeSelectionListener
void
removeSelectionListener( [in] XGridSelectionListener  listener );

Description
Removes a listener previously added with addSelectionListener().
Parameter listener
the listener to remove.
Top of Page