📄 resulthistorypanel.html
字号:
</TR></TABLE><A NAME="ResultHistoryPanel(javax.swing.text.JTextComponent)"><!-- --></A><H3>ResultHistoryPanel</H3><PRE>public <B>ResultHistoryPanel</B>(javax.swing.text.JTextComponent text)</PRE><DL><DD>Create the result history object<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the optional text component for single-click display</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addResult(java.lang.String, java.lang.StringBuffer)"><!-- --></A><H3>addResult</H3><PRE>public void <B>addResult</B>(java.lang.String name, java.lang.StringBuffer result)</PRE><DL><DD>Adds a new result to the result list.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to associate with the result<DD><CODE>result</CODE> - the StringBuffer that contains the result text</DL></DD></DL><HR><A NAME="removeResult(java.lang.String)"><!-- --></A><H3>removeResult</H3><PRE>public void <B>removeResult</B>(java.lang.String name)</PRE><DL><DD>Removes one of the result buffers from the history. Any windows currently displaying the contents of the buffer are not affected.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the buffer to remove.</DL></DD></DL><HR><A NAME="addObject(java.lang.String, java.lang.Object)"><!-- --></A><H3>addObject</H3><PRE>public void <B>addObject</B>(java.lang.String name, java.lang.Object o)</PRE><DL><DD>Adds an object to the results list<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to associate with the object<DD><CODE>o</CODE> - the object</DL></DD></DL><HR><A NAME="getNamedObject(java.lang.String)"><!-- --></A><H3>getNamedObject</H3><PRE>public java.lang.Object <B>getNamedObject</B>(java.lang.String name)</PRE><DL><DD>Get the named object from the list<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the item to retrieve the stored object for<DT><B>Returns:</B><DD>the object or null if there is no object at this index</DL></DD></DL><HR><A NAME="getSelectedObject()"><!-- --></A><H3>getSelectedObject</H3><PRE>public java.lang.Object <B>getSelectedObject</B>()</PRE><DL><DD>Gets the object associated with the currently selected item in the list.<DD><DL><DT><B>Returns:</B><DD>the object or null if there is no object corresponding to the current selection in the list</DL></DD></DL><HR><A NAME="getNamedBuffer(java.lang.String)"><!-- --></A><H3>getNamedBuffer</H3><PRE>public java.lang.StringBuffer <B>getNamedBuffer</B>(java.lang.String name)</PRE><DL><DD>Gets the named buffer<DD><DL><DT><B>Returns:</B><DD>the buffer or null if there are no items in the list</DL></DD></DL><HR><A NAME="getSelectedBuffer()"><!-- --></A><H3>getSelectedBuffer</H3><PRE>public java.lang.StringBuffer <B>getSelectedBuffer</B>()</PRE><DL><DD>Gets the buffer associated with the currently selected item in the list.<DD><DL><DT><B>Returns:</B><DD>the buffer or null if there are no items in the list</DL></DD></DL><HR><A NAME="getSelectedName()"><!-- --></A><H3>getSelectedName</H3><PRE>public java.lang.String <B>getSelectedName</B>()</PRE><DL><DD>Get the name of the currently selected item in the list<DD><DL><DT><B>Returns:</B><DD>the name of the currently selected item or null if no item selected</DL></DD></DL><HR><A NAME="getNameAtIndex(int)"><!-- --></A><H3>getNameAtIndex</H3><PRE>public java.lang.String <B>getNameAtIndex</B>(int index)</PRE><DL><DD>Gets the name of theitem in the list at the specified index<DD><DL><DT><B>Returns:</B><DD>the name of item or null if there is no item at that index</DL></DD></DL><HR><A NAME="setSingle(java.lang.String)"><!-- --></A><H3>setSingle</H3><PRE>public void <B>setSingle</B>(java.lang.String name)</PRE><DL><DD>Sets the single-click display to view the named result.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the result to display.</DL></DD></DL><HR><A NAME="openFrame(java.lang.String)"><!-- --></A><H3>openFrame</H3><PRE>public void <B>openFrame</B>(java.lang.String name)</PRE><DL><DD>Opens the named result in a separate frame.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the result to open.</DL></DD></DL><HR><A NAME="updateResult(java.lang.String)"><!-- --></A><H3>updateResult</H3><PRE>public void <B>updateResult</B>(java.lang.String name)</PRE><DL><DD>Tells any component currently displaying the named result that the contents of the result text in the StringBuffer have been updated.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the result that has been updated.</DL></DD></DL><HR><A NAME="getSelectionModel()"><!-- --></A><H3>getSelectionModel</H3><PRE>public javax.swing.ListSelectionModel <B>getSelectionModel</B>()</PRE><DL><DD>Gets the selection model used by the results list.<DD><DL><DT><B>Returns:</B><DD>a value of type 'ListSelectionModel'</DL></DD></DL><HR><A NAME="getList()"><!-- --></A><H3>getList</H3><PRE>public javax.swing.JList <B>getList</B>()</PRE><DL><DD>Gets the JList used by the results list<DD><DL><DT><B>Returns:</B><DD>the JList</DL></DD></DL><HR><A NAME="setHandleRightClicks(boolean)"><!-- --></A><H3>setHandleRightClicks</H3><PRE>public void <B>setHandleRightClicks</B>(boolean tf)</PRE><DL><DD>Set whether the result history list should handle right clicks or whether the parent object will handle them.<DD><DL><DT><B>Parameters:</B><DD><CODE>tf</CODE> - false if parent object will handle right clicks</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Tests out the result history from the command line.<DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - ignored</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/gui/PropertySheetPanel.html"><B>PREV CLASS</B></A> <A HREF="../../weka/gui/SaveBuffer.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> <A HREF="ResultHistoryPanel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_classes_inherited_from_class_javax.swing.JPanel">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -