📄 genericobjecteditor.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/GenericObjectEditor.html#paintValue(java.awt.Graphics, java.awt.Rectangle)">paintValue</A></B>(java.awt.Graphics gfx, java.awt.Rectangle box)</CODE><BR> Paints a representation of the current Object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/GenericObjectEditor.html#registerEditors()">registerEditors</A></B>()</CODE><BR> registers all the editors in Weka</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/GenericObjectEditor.html#removeCapabilitiesFilter()">removeCapabilitiesFilter</A></B>()</CODE><BR> Removes the current Capabilities filter.</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/GenericObjectEditor.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(java.beans.PropertyChangeListener l)</CODE><BR> Removes a PropertyChangeListener.</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/GenericObjectEditor.html#setAsText(java.lang.String)">setAsText</A></B>(java.lang.String text)</CODE><BR> Returns null as we don't support getting/setting values as text.</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/GenericObjectEditor.html#setCapabilitiesFilter(weka.core.Capabilities)">setCapabilitiesFilter</A></B>(<A HREF="../../weka/core/Capabilities.html" title="class in weka.core">Capabilities</A> value)</CODE><BR> Sets the capabilities to use for filtering.</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/GenericObjectEditor.html#setClassType(java.lang.Class)">setClassType</A></B>(java.lang.Class type)</CODE><BR> Sets the class of values that can be edited.</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/GenericObjectEditor.html#setDefaultValue()">setDefaultValue</A></B>()</CODE><BR> Sets the current object to be the default, taken as the first item in the chooser</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/GenericObjectEditor.html#setEnabled(boolean)">setEnabled</A></B>(boolean newVal)</CODE><BR> Sets whether the editor is "enabled", meaning that the current values will be painted.</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/GenericObjectEditor.html#setValue(java.lang.Object)">setValue</A></B>(java.lang.Object o)</CODE><BR> Sets the current Object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Hashtable</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/gui/GenericObjectEditor.html#sortClassesByRoot(java.lang.String)">sortClassesByRoot</A></B>(java.lang.String classes)</CODE><BR> parses the given string of classes separated by ", " and returns the a hashtable with as many entries as there are different root elements in the class names (the key is the root element).</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/GenericObjectEditor.html#supportsCustomEditor()">supportsCustomEditor</A></B>()</CODE><BR> Returns true because we do support a custom editor.</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, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="GUIEDITORS_PROPERTY_FILE"><!-- --></A><H3>GUIEDITORS_PROPERTY_FILE</H3><PRE>public static final java.lang.String <B>GUIEDITORS_PROPERTY_FILE</B></PRE><DL><DD>the properties files containing the class/editor mappings<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.gui.GenericObjectEditor.GUIEDITORS_PROPERTY_FILE">Constant Field Values</A></DL></DL><!-- ========= 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="GenericObjectEditor()"><!-- --></A><H3>GenericObjectEditor</H3><PRE>public <B>GenericObjectEditor</B>()</PRE><DL><DD>Default constructor.<P></DL><HR><A NAME="GenericObjectEditor(boolean)"><!-- --></A><H3>GenericObjectEditor</H3><PRE>public <B>GenericObjectEditor</B>(boolean canChangeClassInDialog)</PRE><DL><DD>Constructor that allows specifying whether it is possible to change the class within the editor dialog.<P><DL><DT><B>Parameters:</B><DD><CODE>canChangeClassInDialog</CODE> - whether the user can change the class</DL></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="registerEditors()"><!-- --></A><H3>registerEditors</H3><PRE>public static void <B>registerEditors</B>()</PRE><DL><DD>registers all the editors in Weka<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBackup()"><!-- --></A><H3>getBackup</H3><PRE>public java.lang.Object <B>getBackup</B>()</PRE><DL><DD>Returns the backup object (may be null if there is no backup.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the backup object</DL></DD></DL><HR><A NAME="sortClassesByRoot(java.lang.String)"><!-- --></A><H3>sortClassesByRoot</H3><PRE>public static java.util.Hashtable <B>sortClassesByRoot</B>(java.lang.String classes)</PRE><DL><DD>parses the given string of classes separated by ", " and returns the a hashtable with as many entries as there are different root elements in the class names (the key is the root element). E.g. if there's only "weka." as the prefix for all classes the a hashtable of size 1 is returned. if NULL is the input, then NULL is also returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>classes</CODE> - the classnames to work on<DT><B>Returns:</B><DD>for each distinct root element in the classnames, one entry in the hashtable (with the root element as key)</DL></DD></DL><HR><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean 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 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 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -