:: 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
getMinSelectionIndex Returns the lowest index of the selection.  
getMaxSelectionIndex Returns the highest index of the selection.  
insertIndexIntervall Adds a selection intervall.  
removeIndexIntervall Removes a selection intervall.  
getSelection Returns the indicies of all selected rows.  
isSelectionEmpty Returns whether rows are selected.  
isSelectedIndex Returns whether a specific row is selected.  
selectRow Marks a row as selected.  
addSelectionListener Adds a listener for the GridSelectionEvent posted after the grid changes.  
removeSelectionListener Removes a listener previously added with addSelectionListener().  
Methods' Details
getMinSelectionIndex
long
getMinSelectionIndex();

Description
Returns the lowest index of the selection.
Returns
the lowest index.
getMaxSelectionIndex
long
getMaxSelectionIndex();

Description
Returns the highest index of the selection.
Returns
the highest index.
insertIndexIntervall
[oneway] void
insertIndexIntervall( [in] long  start,
[in] long  length );

Description
Adds a selection intervall.
Parameter start
the start row index.
Parameter length
the number of rows to be selected.
removeIndexIntervall
[oneway] void
removeIndexIntervall( [in] long  start,
[in] long  length );

Description
Removes a selection intervall.
Parameter start
the start row index.
Parameter length
the number of rows to be selected.
getSelection
sequence< long >
getSelection();

Description
Returns the indicies of all selected rows.
Returns
a sequence of indicies.
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.
selectRow
[oneway] void
selectRow( [in] long  y );

Description
Marks a row as selected.
Parameter the
index of a row.
addSelectionListener
[oneway] void
addSelectionListener( [in] XGridSelectionListener  listener );

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

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