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

📄 formfield.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DD></DL><HR><A NAME="clearValues()"><!-- --></A><H3>clearValues</H3><PRE>public void <B>clearValues</B>()</PRE><DL><DD>Removes all the values of the field.<P><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>&nbsp;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>&nbsp;value)</PRE><DL><DD>Adds an available option to the question that the user has in order to answer the question.<P><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="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../../org/xmpp/forms/FormField.Option.html" title="class in org.xmpp.forms">FormField.Option</A>&gt; <B>getOptions</B>()</PRE><DL><DD>Returns the available options to answer for this question. The returned options cannot be modified but they will be updated if the underlying DOM object gets updated.<P><DD><DL><DT><B>Returns:</B><DD>the available options to answer for this question.</DL></DD></DL><HR><A NAME="setType(org.xmpp.forms.FormField.Type)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(<A HREF="../../../org/xmpp/forms/FormField.Type.html" title="enum in org.xmpp.forms">FormField.Type</A>&nbsp;type)</PRE><DL><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>Parameters:</B><DD><CODE>type</CODE> - an indicative of the format for the data to answer.</DL></DD></DL><HR><A NAME="setVariable(java.lang.String)"><!-- --></A><H3>setVariable</H3><PRE>public void <B>setVariable</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>&nbsp;var)</PRE><DL><DD>Sets the attribute that uniquely identifies the field in the context of the form. If the field is of type "fixed" then the variable is optional.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>var</CODE> - the unique identifier of the field in the context of the form.</DL></DD></DL><HR><A NAME="setLabel(java.lang.String)"><!-- --></A><H3>setLabel</H3><PRE>public void <B>setLabel</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>&nbsp;label)</PRE><DL><DD>Sets the label of the question which should give enough information to the user to fill out the form.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - the label of the question.</DL></DD></DL><HR><A NAME="setRequired(boolean)"><!-- --></A><H3>setRequired</H3><PRE>public void <B>setRequired</B>(boolean&nbsp;required)</PRE><DL><DD>Sets if the question must be answered in order to complete the questionnaire.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>required</CODE> - if the question must be answered in order to complete the questionnaire.</DL></DD></DL><HR><A NAME="setDescription(java.lang.String)"><!-- --></A><H3>setDescription</H3><PRE>public void <B>setDescription</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>&nbsp;description)</PRE><DL><DD>Sets a description that provides extra clarification about the question. This information could be presented to the user either in tool-tip, help button, or as a section of text before the question.<p> <p/> If the question is of type FIXED then the description should remain empty.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>description</CODE> - provides extra clarification about the question.</DL></DD></DL><HR><A NAME="isRequired()"><!-- --></A><H3>isRequired</H3><PRE>public boolean <B>isRequired</B>()</PRE><DL><DD>Returns true if the question must be answered in order to complete the questionnaire.<P><DD><DL><DT><B>Returns:</B><DD>true if the question must be answered in order to complete the questionnaire.</DL></DD></DL><HR><A NAME="getVariable()"><!-- --></A><H3>getVariable</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>getVariable</B>()</PRE><DL><DD>Returns the variable name that the question is filling out.<P><DD><DL><DT><B>Returns:</B><DD>the variable name of the question.</DL></DD></DL><HR><A NAME="getValues()"><!-- --></A><H3>getValues</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<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>&gt; <B>getValues</B>()</PRE><DL><DD>Returns an Iterator for the default values of the question if the question is part of a form to fill out. Otherwise, returns an Iterator for the answered values of the question.<P><DD><DL><DT><B>Returns:</B><DD>an Iterator for the default values or answered values of the question.</DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public <A HREF="../../../org/xmpp/forms/FormField.Type.html" title="enum in org.xmpp.forms">FormField.Type</A> <B>getType</B>()</PRE><DL><DD>Returns 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>Returns:</B><DD>format for the data to answer.</DL></DD></DL><HR><A NAME="getLabel()"><!-- --></A><H3>getLabel</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>getLabel</B>()</PRE><DL><DD>Returns the label of the question which should give enough information to the user to fill out the form.<P><DD><DL><DT><B>Returns:</B><DD>label of the question.</DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</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>getDescription</B>()</PRE><DL><DD>Returns a description that provides extra clarification about the question. This information could be presented to the user either in tool-tip, help button, or as a section of text before the question.<p> <p/> If the question is of type FIXED then the description should remain empty.<P><DD><DL><DT><B>Returns:</B><DD>description that provides extra clarification about the question.</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=2 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="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/xmpp/forms/DataForm.Type.html" title="enum in org.xmpp.forms"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/xmpp/forms/FormField.Option.html" title="class in org.xmpp.forms"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/xmpp/forms/FormField.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="FormField.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2008 Jive Software.</i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -