⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listselectionmodel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A HREF="../../javax/swing/ListSelectionModel.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A></DL></DD></DL><HR><A NAME="setAnchorSelectionIndex(int)"><!-- --></A><H3>setAnchorSelectionIndex</H3><PRE>public void <B>setAnchorSelectionIndex</B>(int&nbsp;index)</PRE><DL><DD>Set the anchor selection index.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getAnchorSelectionIndex()"><CODE>getAnchorSelectionIndex()</CODE></A></DL></DD></DL><HR><A NAME="getLeadSelectionIndex()"><!-- --></A><H3>getLeadSelectionIndex</H3><PRE>public int <B>getLeadSelectionIndex</B>()</PRE><DL><DD>Return the second index argument from the most recent call to  setSelectionInterval(), addSelectionInterval() or removeSelectionInterval().<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getAnchorSelectionIndex()"><CODE>getAnchorSelectionIndex()</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A></DL></DD></DL><HR><A NAME="setLeadSelectionIndex(int)"><!-- --></A><H3>setLeadSelectionIndex</H3><PRE>public void <B>setLeadSelectionIndex</B>(int&nbsp;index)</PRE><DL><DD>Set the lead selection index.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getLeadSelectionIndex()"><CODE>getLeadSelectionIndex()</CODE></A></DL></DD></DL><HR><A NAME="clearSelection()"><!-- --></A><H3>clearSelection</H3><PRE>public void <B>clearSelection</B>()</PRE><DL><DD>Change the selection to the empty set.  If this represents a change to the current selection then notify each ListSelectionListener.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL></DD></DL><HR><A NAME="isSelectionEmpty()"><!-- --></A><H3>isSelectionEmpty</H3><PRE>public boolean <B>isSelectionEmpty</B>()</PRE><DL><DD>Returns true if no indices are selected.</DL><HR><A NAME="insertIndexInterval(int, int, boolean)"><!-- --></A><H3>insertIndexInterval</H3><PRE>public void <B>insertIndexInterval</B>(int&nbsp;index,                                int&nbsp;length,                                boolean&nbsp;before)</PRE><DL><DD>Insert length indices beginning before/after index.  This is typically  called to sync the selection model with a corresponding change in the data model.</DL><HR><A NAME="removeIndexInterval(int, int)"><!-- --></A><H3>removeIndexInterval</H3><PRE>public void <B>removeIndexInterval</B>(int&nbsp;index0,                                int&nbsp;index1)</PRE><DL><DD>Remove the indices in the interval index0,index1 (inclusive) from the selection model.  This is typically called to sync the selection model width a corresponding change in the data model.</DL><HR><A NAME="setValueIsAdjusting(boolean)"><!-- --></A><H3>setValueIsAdjusting</H3><PRE>public void <B>setValueIsAdjusting</B>(boolean&nbsp;valueIsAdjusting)</PRE><DL><DD>This property is true if upcoming changes to the value of the model should be considered a single event. For example if the model is being updated in response to a user drag, the value of the valueIsAdjusting property will be set to true when the drag is initiated and be set to false when the drag is finished.  This property allows listeners to  to update only when a change has been finalized, rather than always handling all of the intermediate values.<DD><DL><DT><B>Parameters:</B><DD><CODE>valueIsAdjusting</CODE> - The new value of the property.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getValueIsAdjusting()"><CODE>getValueIsAdjusting()</CODE></A></DL></DD></DL><HR><A NAME="getValueIsAdjusting()"><!-- --></A><H3>getValueIsAdjusting</H3><PRE>public boolean <B>getValueIsAdjusting</B>()</PRE><DL><DD>Returns true if the value is undergoing a series of changes.<DD><DL><DT><B>Returns:</B><DD>true if the value is currently adjusting<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#setValueIsAdjusting(boolean)"><CODE>setValueIsAdjusting(boolean)</CODE></A></DL></DD></DL><HR><A NAME="setSelectionMode(int)"><!-- --></A><H3>setSelectionMode</H3><PRE>public void <B>setSelectionMode</B>(int&nbsp;selectionMode)</PRE><DL><DD>Set the selection mode. The following selectionMode values are allowed: <ul> <li> <code>SINGLE_SELECTION</code>    Only one list index can be selected at a time.  In this   mode the setSelectionInterval and addSelectionInterval    methods are equivalent, and only the second index   argument (the "lead index") is used. <li> <code>SINGLE_INTERVAL_SELECTION</code>   One contiguous index interval can be selected at a time.   In this mode setSelectionInterval and addSelectionInterval    are equivalent. <li> <code>MULTIPLE_INTERVAL_SELECTION</code>   In this mode, there's no restriction on what can be selected. </ul><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getSelectionMode()"><CODE>getSelectionMode()</CODE></A></DL></DD></DL><HR><A NAME="getSelectionMode()"><!-- --></A><H3>getSelectionMode</H3><PRE>public int <B>getSelectionMode</B>()</PRE><DL><DD>Returns the current selection mode.<DD><DL><DT><B>Returns:</B><DD>The value of the selectionMode property.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#setSelectionMode(int)"><CODE>setSelectionMode(int)</CODE></A></DL></DD></DL><HR><A NAME="addListSelectionListener(javax.swing.event.ListSelectionListener)"><!-- --></A><H3>addListSelectionListener</H3><PRE>public void <B>addListSelectionListener</B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;x)</PRE><DL><DD>Add a listener to the list that's notified each time a change to the selection occurs.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the ListSelectionListener<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#removeListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>removeListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#removeSelectionInterval(int, int)"><CODE>removeSelectionInterval(int, int)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#clearSelection()"><CODE>clearSelection()</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#insertIndexInterval(int, int, boolean)"><CODE>insertIndexInterval(int, int, boolean)</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html#removeIndexInterval(int, int)"><CODE>removeIndexInterval(int, int)</CODE></A></DL></DD></DL><HR><A NAME="removeListSelectionListener(javax.swing.event.ListSelectionListener)"><!-- --></A><H3>removeListSelectionListener</H3><PRE>public void <B>removeListSelectionListener</B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;x)</PRE><DL><DD>Remove a listener from the list that's notified each time a  change to the selection occurs.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the ListSelectionListener<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ListSelectionModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/swing/ListModel.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/MenuElement.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ListSelectionModel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -