📄 xformfieldimpl.html
字号:
</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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setDescription(java.lang.String)">setDescription</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> description)</CODE><BR> Sets a description that provides extra clarification about the question.</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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setLabel(java.lang.String)">setLabel</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> label)</CODE><BR> Sets the label of the question which should give enough information to the user to fill out the form.</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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setName(java.lang.String)">setName</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> </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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setNamespace(java.lang.String)">setNamespace</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespace)</CODE><BR> </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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setRequired(boolean)">setRequired</A></B>(boolean required)</CODE><BR> Sets if the question must be answered in order to complete the questionnaire.</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="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#setType(java.lang.String)">setType</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> type)</CODE><BR> Sets an indicative of the format for the data to answer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/openfire/forms/spi/XFormFieldImpl.html#toString()">toString</A></B>()</CODE><BR> </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.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></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="XFormFieldImpl()"><!-- --></A><H3>XFormFieldImpl</H3><PRE>public <B>XFormFieldImpl</B>()</PRE><DL></DL><HR><A NAME="XFormFieldImpl(java.lang.String)"><!-- --></A><H3>XFormFieldImpl</H3><PRE>public <B>XFormFieldImpl</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> variable)</PRE><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="getNamespace()"><!-- --></A><H3>getNamespace</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNamespace</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setNamespace(java.lang.String)"><!-- --></A><H3>setNamespace</H3><PRE>public void <B>setNamespace</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespace)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="asXMLElement()"><!-- --></A><H3>asXMLElement</H3><PRE>public org.dom4j.Element <B>asXMLElement</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addValue(java.lang.String)"><!-- --></A><H3>addValue</H3><PRE>public void <B>addValue</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#addValue(java.lang.String)">FormField</A></CODE></B></DD><DD>Adds a default value to the question if the question is part of a form to fill out. Otherwise, adds an answered value to the question.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#addValue(java.lang.String)">addValue</A></CODE> in interface <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html" title="interface in org.jivesoftware.openfire.forms">FormField</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - a default value or an answered value of the question.</DL></DD></DL><HR><A NAME="clearValues()"><!-- --></A><H3>clearValues</H3><PRE>public void <B>clearValues</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#clearValues()">FormField</A></CODE></B></DD><DD>Removes all the values of the field.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#clearValues()">clearValues</A></CODE> in interface <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html" title="interface in org.jivesoftware.openfire.forms">FormField</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addOption(java.lang.String, java.lang.String)"><!-- --></A><H3>addOption</H3><PRE>public void <B>addOption</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> label, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#addOption(java.lang.String, java.lang.String)">FormField</A></CODE></B></DD><DD>Adds an available option to the question that the user has in order to answer the question.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#addOption(java.lang.String, java.lang.String)">addOption</A></CODE> in interface <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html" title="interface in org.jivesoftware.openfire.forms">FormField</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - a label that represents the option.<DD><CODE>value</CODE> - the value of the option.</DL></DD></DL><HR><A NAME="setType(java.lang.String)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> type)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#setType(java.lang.String)">FormField</A></CODE></B></DD><DD>Sets an indicative of the format for the data to answer. Valid formats are: <p/> <ul> <li>text-single -> single line or word of text <li>text-private -> instead of showing the user what they typed, you show ***** to protect it <li>text-multi -> multiple lines of text entry <li>list-single -> given a list of choices, pick one <li>list-multi -> given a list of choices, pick one or more <li>boolean -> 0 or 1, true or false, yes or no. Default value is 0 <li>fixed -> fixed for putting in text to show sections, or just advertise your web site in the middle of the form <li>hidden -> is not given to the user at all, but returned with the questionnaire <li>jid-single -> Jabber ID - choosing a JID from your roster, and entering one based on the rules for a JID. <li>jid-multi -> multiple entries for JIDs </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#setType(java.lang.String)">setType</A></CODE> in interface <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html" title="interface in org.jivesoftware.openfire.forms">FormField</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - an indicative of the format for the data to answer.</DL></DD></DL><HR><A NAME="setRequired(boolean)"><!-- --></A><H3>setRequired</H3><PRE>public void <B>setRequired</B>(boolean required)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/jivesoftware/openfire/forms/FormField.html#setRequired(boolean)">FormField</A></CODE></B></DD><DD>Sets if the question must be answered in order to complete the questionnaire.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -