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

📄 genericobjecteditor.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P><DT><B>Parameters:</B><DD><CODE>canChangeClassInDialog</CODE> - whether the user can change the class</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean&nbsp;newVal)</PRE><DL><DD>Sets whether the editor is "enabled", meaning that the current values will be painted.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newVal</CODE> - a value of type 'boolean'</DL></DD></DL><HR><A NAME="setClassType(java.lang.Class)"><!-- --></A><H3>setClassType</H3><PRE>public void <B>setClassType</B>(java.lang.Class&nbsp;type)</PRE><DL><DD>Sets the class of values that can be edited.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - a value of type 'Class'</DL></DD></DL><HR><A NAME="setDefaultValue()"><!-- --></A><H3>setDefaultValue</H3><PRE>public void <B>setDefaultValue</B>()</PRE><DL><DD>Sets the current object to be the default, taken as the first item in the chooser<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValue(java.lang.Object)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(java.lang.Object&nbsp;o)</PRE><DL><DD>Sets the current Object. If the Object is in the Object chooser, this becomes the selected item (and added to the chooser if necessary).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - an object that must be a Object.</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Object <B>getValue</B>()</PRE><DL><DD>Gets the current Object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current Object</DL></DD></DL><HR><A NAME="getJavaInitializationString()"><!-- --></A><H3>getJavaInitializationString</H3><PRE>public java.lang.String <B>getJavaInitializationString</B>()</PRE><DL><DD>Supposedly returns an initialization string to create a Object identical to the current one, including it's state, but this doesn't appear possible given that the initialization string isn't supposed to contain multiple statements.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getJavaInitializationString</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the java source code initialisation string</DL></DD></DL><HR><A NAME="isPaintable()"><!-- --></A><H3>isPaintable</H3><PRE>public boolean <B>isPaintable</B>()</PRE><DL><DD>Returns true to indicate that we can paint a representation of the Object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isPaintable</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="paintValue(java.awt.Graphics, java.awt.Rectangle)"><!-- --></A><H3>paintValue</H3><PRE>public void <B>paintValue</B>(java.awt.Graphics&nbsp;gfx,                       java.awt.Rectangle&nbsp;box)</PRE><DL><DD>Paints a representation of the current Object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>paintValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>gfx</CODE> - the graphics context to use<DD><CODE>box</CODE> - the area we are allowed to paint into</DL></DD></DL><HR><A NAME="getAsText()"><!-- --></A><H3>getAsText</H3><PRE>public java.lang.String <B>getAsText</B>()</PRE><DL><DD>Returns null as we don't support getting/setting values as text.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getAsText</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>null</DL></DD></DL><HR><A NAME="setAsText(java.lang.String)"><!-- --></A><H3>setAsText</H3><PRE>public void <B>setAsText</B>(java.lang.String&nbsp;text)</PRE><DL><DD>Returns null as we don't support getting/setting values as text.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setAsText</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - as we don't support getting/setting values as text.</DL></DD></DL><HR><A NAME="getTags()"><!-- --></A><H3>getTags</H3><PRE>public java.lang.String[] <B>getTags</B>()</PRE><DL><DD>Returns null as we don't support getting values as tags.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getTags</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>null</DL></DD></DL><HR><A NAME="supportsCustomEditor()"><!-- --></A><H3>supportsCustomEditor</H3><PRE>public boolean <B>supportsCustomEditor</B>()</PRE><DL><DD>Returns true because we do support a custom editor.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>supportsCustomEditor</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="getCustomEditor()"><!-- --></A><H3>getCustomEditor</H3><PRE>public java.awt.Component <B>getCustomEditor</B>()</PRE><DL><DD>Returns the array editing component.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getCustomEditor</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a value of type 'java.awt.Component'</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(java.beans.PropertyChangeListener&nbsp;l)</PRE><DL><DD>Adds a PropertyChangeListener who will be notified of value changes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>addPropertyChangeListener</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a value of type 'PropertyChangeListener'</DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(java.beans.PropertyChangeListener&nbsp;l)</PRE><DL><DD>Removes a PropertyChangeListener.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>removePropertyChangeListener</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a value of type 'PropertyChangeListener'</DL></DD></DL><HR><A NAME="getCustomPanel()"><!-- --></A><H3>getCustomPanel</H3><PRE>public javax.swing.JPanel <B>getCustomPanel</B>()</PRE><DL><DD>Gets the custom panel used for editing the object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/gui/CustomPanelSupplier.html#getCustomPanel()">getCustomPanel</A></CODE> in interface <CODE><A HREF="../../weka/gui/CustomPanelSupplier.html" title="interface in weka.gui">CustomPanelSupplier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the custom JPanel</DL></DD></DL><HR><A NAME="getChooseClassPopupMenu()"><!-- --></A><H3>getChooseClassPopupMenu</H3><PRE>public javax.swing.JPopupMenu <B>getChooseClassPopupMenu</B>()</PRE><DL><DD>Returns a popup menu that allows the user to change the class of object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a JPopupMenu that when shown will let the user choose the class</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE><DL><DD>Tests out the Object editor from the command line.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - may contain the class name of a Object to edit</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=3 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="../../../Tutorial.pdf"><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/index.html"><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/GenericArrayEditor.html" title="class in weka.gui"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/gui/GenericObjectEditor.GOEPanel.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" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="GenericObjectEditor.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;<A HREF="#nested_class_summary">NESTED</A>&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 + -