📄 checkboxlist.checkboxlistmodel.html
字号:
Removes the element at the specified position in this list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/CheckBoxList.CheckBoxListModel.html#removeElement(java.lang.Object)">removeElement</A></B>(java.lang.Object obj)</CODE><BR> Removes the first (lowest-indexed) occurrence of the argument from this list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/CheckBoxList.CheckBoxListModel.html#set(int, java.lang.Object)">set</A></B>(int index, java.lang.Object element)</CODE><BR> Replaces the element at the specified position in this list with the specified element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/CheckBoxList.CheckBoxListModel.html#setChecked(int, boolean)">setChecked</A></B>(int index, boolean checked)</CODE><BR> sets the checked state of the element at the given index</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/CheckBoxList.CheckBoxListModel.html#setElementAt(java.lang.Object, int)">setElementAt</A></B>(java.lang.Object obj, int index)</CODE><BR> Sets the component at the specified index of this list to be the specified object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/CheckBoxList.CheckBoxListModel.html#toArray()">toArray</A></B>()</CODE><BR> Returns an array containing all of the elements in this list in the correct order.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.DefaultListModel"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.swing.DefaultListModel</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>capacity, clear, elements, ensureCapacity, getSize, isEmpty, removeAllElements, removeElementAt, removeRange, setSize, size, toString, trimToSize</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.AbstractListModel"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.swing.AbstractListModel</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>addListDataListener, getListDataListeners, getListeners, removeListDataListener</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="CheckBoxList.CheckBoxListModel()"><!-- --></A><H3>CheckBoxList.CheckBoxListModel</H3><PRE>public <B>CheckBoxList.CheckBoxListModel</B>()</PRE><DL><DD>initializes the model with no data.<P></DL><HR><A NAME="CheckBoxList.CheckBoxListModel(java.lang.Object[])"><!-- --></A><H3>CheckBoxList.CheckBoxListModel</H3><PRE>public <B>CheckBoxList.CheckBoxListModel</B>(java.lang.Object[] listData)</PRE><DL><DD>Constructs a CheckBoxListModel from an array of objects and then applies setModel to it.<P><DL><DT><B>Parameters:</B><DD><CODE>listData</CODE> - the data to use</DL></DL><HR><A NAME="CheckBoxList.CheckBoxListModel(java.util.Vector)"><!-- --></A><H3>CheckBoxList.CheckBoxListModel</H3><PRE>public <B>CheckBoxList.CheckBoxListModel</B>(java.util.Vector listData)</PRE><DL><DD>Constructs a CheckBoxListModel from a Vector and then applies setModel to it.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="add(int, java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(int index, java.lang.Object element)</PRE><DL><DD>Inserts the specified element at the specified position in this list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>add</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the specified element is to be inserted<DD><CODE>element</CODE> - element to be inserted</DL></DD></DL><HR><A NAME="addElement(java.lang.Object)"><!-- --></A><H3>addElement</H3><PRE>public void <B>addElement</B>(java.lang.Object obj)</PRE><DL><DD>Adds the specified component to the end of this list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>addElement</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the component to be added</DL></DD></DL><HR><A NAME="contains(java.lang.Object)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(java.lang.Object elem)</PRE><DL><DD>Tests whether the specified object is a component in this list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>contains</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element to check<DT><B>Returns:</B><DD>true if the element is in the list</DL></DD></DL><HR><A NAME="copyInto(java.lang.Object[])"><!-- --></A><H3>copyInto</H3><PRE>public void <B>copyInto</B>(java.lang.Object[] anArray)</PRE><DL><DD>Copies the components of this list into the specified array.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>copyInto</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>anArray</CODE> - the array into which the components get copied<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if the array is not big enough</DL></DD></DL><HR><A NAME="elementAt(int)"><!-- --></A><H3>elementAt</H3><PRE>public java.lang.Object <B>elementAt</B>(int index)</PRE><DL><DD>Returns the component at the specified index. Throws an ArrayIndexOutOfBoundsException if the index is negative or not less than the size of the list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>elementAt</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - an index into this list<DT><B>Returns:</B><DD>the component at the specified index<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="firstElement()"><!-- --></A><H3>firstElement</H3><PRE>public java.lang.Object <B>firstElement</B>()</PRE><DL><DD>Returns the first component of this list. Throws a NoSuchElementException if this vector has no components.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>firstElement</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the first component of this list<DT><B>Throws:</B><DD><CODE>NoSuchElementException</CODE></DL></DD></DL><HR><A NAME="get(int)"><!-- --></A><H3>get</H3><PRE>public java.lang.Object <B>get</B>(int index)</PRE><DL><DD>Returns the element at the specified position in this list.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>get</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - of element to return<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="getElementAt(int)"><!-- --></A><H3>getElementAt</H3><PRE>public java.lang.Object <B>getElementAt</B>(int index)</PRE><DL><DD>Returns the component at the specified index.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getElementAt</CODE> in interface <CODE>javax.swing.ListModel</CODE><DT><B>Overrides:</B><DD><CODE>getElementAt</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - an index into this list<DT><B>Returns:</B><DD>the component at the specified index<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE></DL></DD></DL><HR><A NAME="indexOf(java.lang.Object)"><!-- --></A><H3>indexOf</H3><PRE>public int <B>indexOf</B>(java.lang.Object elem)</PRE><DL><DD>Searches for the first occurrence of elem.<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> - an object
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -