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

📄 checkboxlist.checkboxlistmodel.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Returns:</B><DD>the index of the first occurrence of the argument in this list;                         returns -1 if the object is not found</DL></DD></DL><HR><A NAME="indexOf(java.lang.Object, int)"><!-- --></A><H3>indexOf</H3><PRE>public int <B>indexOf</B>(java.lang.Object&nbsp;elem,                   int&nbsp;index)</PRE><DL><DD>Searches for the first occurrence of elem, beginning the search at index.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>indexOf</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the desired component<DD><CODE>index</CODE> - the index from which to begin searching<DT><B>Returns:</B><DD>the index where the first occurrence of elem  is found after index;                         returns -1  if the elem is not found in the list</DL></DD></DL><HR><A NAME="insertElementAt(java.lang.Object, int)"><!-- --></A><H3>insertElementAt</H3><PRE>public void <B>insertElementAt</B>(java.lang.Object&nbsp;obj,                            int&nbsp;index)</PRE><DL><DD>Inserts the specified object as a component in this list at the  specified index.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>insertElementAt</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the component to insert<DD><CODE>index</CODE> - where to insert the new component<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="lastElement()"><!-- --></A><H3>lastElement</H3><PRE>public java.lang.Object <B>lastElement</B>()</PRE><DL><DD>Returns the last component of the list. Throws a NoSuchElementException  if this vector has no components.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>lastElement</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the last component of the list<DT><B>Throws:</B><DD><CODE>NoSuchElementException</CODE></DL></DD></DL><HR><A NAME="lastIndexOf(java.lang.Object)"><!-- --></A><H3>lastIndexOf</H3><PRE>public int <B>lastIndexOf</B>(java.lang.Object&nbsp;elem)</PRE><DL><DD>Returns the index of the last occurrence of elem.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>lastIndexOf</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the desired component<DT><B>Returns:</B><DD>the index of the last occurrence of elem  in the list;                         returns -1 if the object is not found</DL></DD></DL><HR><A NAME="lastIndexOf(java.lang.Object, int)"><!-- --></A><H3>lastIndexOf</H3><PRE>public int <B>lastIndexOf</B>(java.lang.Object&nbsp;elem,                       int&nbsp;index)</PRE><DL><DD>Searches backwards for elem, starting from the specified index,  and returns an index to it.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>lastIndexOf</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the desired component<DD><CODE>index</CODE> - the index to start searching from<DT><B>Returns:</B><DD>the index of the last occurrence of the elem in this                         list at position less than index; returns -1 if the                         object is not found</DL></DD></DL><HR><A NAME="remove(int)"><!-- --></A><H3>remove</H3><PRE>public java.lang.Object <B>remove</B>(int&nbsp;index)</PRE><DL><DD>Removes the element at the specified position in this list. Returns the  element that was removed from the list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>remove</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to removed<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="removeElement(java.lang.Object)"><!-- --></A><H3>removeElement</H3><PRE>public boolean <B>removeElement</B>(java.lang.Object&nbsp;obj)</PRE><DL><DD>Removes the first (lowest-indexed) occurrence of the argument from this  list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>removeElement</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the component to be removed<DT><B>Returns:</B><DD>true if the argument was a component of this list;                         false otherwise</DL></DD></DL><HR><A NAME="set(int, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public java.lang.Object <B>set</B>(int&nbsp;index,                            java.lang.Object&nbsp;element)</PRE><DL><DD>Replaces the element at the specified position in this list with the  specified element.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>set</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of element to replace<DD><CODE>element</CODE> - element to be stored at the specified position<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="setElementAt(java.lang.Object, int)"><!-- --></A><H3>setElementAt</H3><PRE>public void <B>setElementAt</B>(java.lang.Object&nbsp;obj,                         int&nbsp;index)</PRE><DL><DD>Sets the component at the specified index of this list to be the  specified object. The previous component at that position is discarded.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>setElementAt</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - what the component is to be set to<DD><CODE>index</CODE> - the specified index<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="toArray()"><!-- --></A><H3>toArray</H3><PRE>public java.lang.Object[] <B>toArray</B>()</PRE><DL><DD>Returns an array containing all of the elements in this list in the  correct order.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toArray</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the elements of the list</DL></DD></DL><HR><A NAME="getChecked(int)"><!-- --></A><H3>getChecked</H3><PRE>public boolean <B>getChecked</B>(int&nbsp;index)</PRE><DL><DD>returns the checked state of the element at the given index<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to return the checked state for<DT><B>Returns:</B><DD>the checked state of the specifed element</DL></DD></DL><HR><A NAME="setChecked(int, boolean)"><!-- --></A><H3>setChecked</H3><PRE>public void <B>setChecked</B>(int&nbsp;index,                       boolean&nbsp;checked)</PRE><DL><DD>sets the checked state of the element at the given index<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to set the checked state for<DD><CODE>checked</CODE> - the new checked state</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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="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-all.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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../weka/gui/CheckBoxList.html" title="class in weka.gui"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/gui/CheckBoxList.CheckBoxListRenderer.html" title="class in weka.gui"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?weka/gui/CheckBoxList.CheckBoxListModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CheckBoxList.CheckBoxListModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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