<html> <head> <title>Interface XGridSelection</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="XGridSelection-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td> <td class="navisub">Attributes' Summary</td> <td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td> <td class="navisub">Attributes' Details</td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../../module-ix.html" class="namechain">::</a> <a href="../../../../module-ix.html" class="namechain">com</a> :: <a href="../../../module-ix.html" class="namechain">sun</a> :: <a href="../../module-ix.html" class="namechain">star</a> :: <a href="../module-ix.html" class="namechain">awt</a> :: <a href="module-ix.html" class="namechain">grid</a> :: </p> </td> </tr> <tr> <td class="title"><table class="title-table" width="99%"> <tr> <td width="25%" class="title2">unpublished </td> <td width="50%" class="title">interface XGridSelection</td> <td width="*"/></tr> </table> </td> </tr> <tr> <td/></tr> <tr> <td><dl> <dt><b>Usage Restrictions</b></dt> <dd><i>not published</i></dd> <dt><b>Description</b></dt> <dd>This interfaces provides access to the selection of row for <a href="UnoControlGrid.html">UnoControlGrid</a>. </dd> </dl> </td> </tr> </table> <hr> <a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Methods' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#getMinSelectionIndex">getMinSelectionIndex</a></td> <td class="imsum_right">Returns the lowest index of the selection. </td> </tr> <tr> <td class="imsum_left"><a href="#getMaxSelectionIndex">getMaxSelectionIndex</a></td> <td class="imsum_right">Returns the highest index of the selection. </td> </tr> <tr> <td class="imsum_left"><a href="#insertIndexIntervall">insertIndexIntervall</a></td> <td class="imsum_right">Adds a selection intervall. </td> </tr> <tr> <td class="imsum_left"><a href="#removeIndexIntervall">removeIndexIntervall</a></td> <td class="imsum_right">Removes a selection intervall. </td> </tr> <tr> <td class="imsum_left"><a href="#getSelection">getSelection</a></td> <td class="imsum_right">Returns the indicies of all selected rows. </td> </tr> <tr> <td class="imsum_left"><a href="#isSelectionEmpty">isSelectionEmpty</a></td> <td class="imsum_right">Returns whether rows are selected. </td> </tr> <tr> <td class="imsum_left"><a href="#isSelectedIndex">isSelectedIndex</a></td> <td class="imsum_right">Returns whether a specific row is selected. </td> </tr> <tr> <td class="imsum_left"><a href="#selectRow">selectRow</a></td> <td class="imsum_right">Marks a row as selected. </td> </tr> <tr> <td class="imsum_left"><a href="#addSelectionListener">addSelectionListener</a></td> <td class="imsum_right">Adds a listener for the <a href="GridSelectionEvent.html">GridSelectionEvent</a> posted after the grid changes. </td> </tr> <tr> <td class="imsum_left"><a href="#removeSelectionListener">removeSelectionListener</a></td> <td class="imsum_right">Removes a listener previously added with <method>addSelectionListener()</method>. </td> </tr> </table> <a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Methods' Details</td> </tr> <tr> <td class="imdetail"><a name="getMinSelectionIndex" class="membertitle">getMinSelectionIndex</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">long</td> </tr> <tr> <td valign="top"><b>getMinSelectionIndex</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Returns the lowest index of the selection. </dd> <dt><b>Returns</b></dt> <dd>the lowest index. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getMaxSelectionIndex" class="membertitle">getMaxSelectionIndex</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">long</td> </tr> <tr> <td valign="top"><b>getMaxSelectionIndex</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Returns the highest index of the selection. </dd> <dt><b>Returns</b></dt> <dd>the highest index. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="insertIndexIntervall" class="membertitle">insertIndexIntervall</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">[oneway] void</td> </tr> <tr> <td valign="top"><b>insertIndexIntervall</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> start,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> length );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Adds a selection intervall. </dd> <dt><b>Parameter start</b></dt> <dd>the start row index. </dd> <dt><b>Parameter length</b></dt> <dd>the number of rows to be selected. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="removeIndexIntervall" class="membertitle">removeIndexIntervall</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">[oneway] void</td> </tr> <tr> <td valign="top"><b>removeIndexIntervall</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> start,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> length );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Removes a selection intervall. </dd> <dt><b>Parameter start</b></dt> <dd>the start row index. </dd> <dt><b>Parameter length</b></dt> <dd>the number of rows to be selected. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getSelection" class="membertitle">getSelection</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">sequence< long ></td> </tr> <tr> <td valign="top"><b>getSelection</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Returns the indicies of all selected rows. </dd> <dt><b>Returns</b></dt> <dd>a sequence of indicies. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="isSelectionEmpty" class="membertitle">isSelectionEmpty</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">boolean</td> </tr> <tr> <td valign="top"><b>isSelectionEmpty</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Returns whether rows are selected. </dd> <dt><b>Returns</b></dt> <dd><b>true</b> if rows are selected otherwise <b>false</b>. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="isSelectedIndex" class="membertitle">isSelectedIndex</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">boolean</td> </tr> <tr> <td valign="top"><b>isSelectedIndex</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> index );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Returns whether a specific row is selected. </dd> <dt><b>Parameter the</b></dt> <dd>index of a row. </dd> <dt><b>Returns</b></dt> <dd><b>true</b> if row are selected otherwise <b>false</b>. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="selectRow" class="membertitle">selectRow</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">[oneway] void</td> </tr> <tr> <td valign="top"><b>selectRow</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> y );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Marks a row as selected. </dd> <dt><b>Parameter the</b></dt> <dd>index of a row. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="addSelectionListener" class="membertitle">addSelectionListener</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">[oneway] void</td> </tr> <tr> <td valign="top"><b>addSelectionListener</b>(</td> <td valign="top">[in] <a href="XGridSelectionListener.html">XGridSelectionListener</a></td> <td valign="bottom"> listener );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Adds a listener for the <a href="GridSelectionEvent.html">GridSelectionEvent</a> posted after the grid changes. </dd> <dt><b>Parameter Listener</b></dt> <dd>the listener to add. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="removeSelectionListener" class="membertitle">removeSelectionListener</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">[oneway] void</td> </tr> <tr> <td valign="top"><b>removeSelectionListener</b>(</td> <td valign="top">[in] <a href="XGridSelectionListener.html">XGridSelectionListener</a></td> <td valign="bottom"> listener );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>Removes a listener previously added with <method>addSelectionListener()</method>. </dd> <dt><b>Parameter Listener</b></dt> <dd>the listener to remove. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-idlref" --> </body> </html>