📄 textfield.html
字号:
<DD>Gets the default text.<P><DD><DL><DT><B>Returns:</B><DD>the default text</DL></DD></DL><HR><A NAME="setDefaultText(java.lang.String)"><!-- --></A><H3>setDefaultText</H3><PRE>public void <B>setDefaultText</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> defaultText)</PRE><DL><DD>Sets the default text. It is only meaningful for text fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>defaultText</CODE> - the default text</DL></DD></DL><HR><A NAME="getChoices()"><!-- --></A><H3>getChoices</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getChoices</B>()</PRE><DL><DD>Gets the choices to be presented to the user in list/combo fields.<P><DD><DL><DT><B>Returns:</B><DD>the choices to be presented to the user</DL></DD></DL><HR><A NAME="setChoices(java.lang.String[])"><!-- --></A><H3>setChoices</H3><PRE>public void <B>setChoices</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] choices)</PRE><DL><DD>Sets the choices to be presented to the user in list/combo fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>choices</CODE> - the choices to be presented to the user</DL></DD></DL><HR><A NAME="getChoiceExports()"><!-- --></A><H3>getChoiceExports</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getChoiceExports</B>()</PRE><DL><DD>Gets the export values in list/combo fields.<P><DD><DL><DT><B>Returns:</B><DD>the export values in list/combo fields</DL></DD></DL><HR><A NAME="setChoiceExports(java.lang.String[])"><!-- --></A><H3>setChoiceExports</H3><PRE>public void <B>setChoiceExports</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] choiceExports)</PRE><DL><DD>Sets the export values in list/combo fields. If this array is <CODE>null</CODE> then the choice values will also be used as the export values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>choiceExports</CODE> - the export values in list/combo fields</DL></DD></DL><HR><A NAME="getChoiceSelection()"><!-- --></A><H3>getChoiceSelection</H3><PRE>public int <B>getChoiceSelection</B>()</PRE><DL><DD>Gets the zero based index of the selected item.<P><DD><DL><DT><B>Returns:</B><DD>the zero based index of the selected item</DL></DD></DL><HR><A NAME="setChoiceSelection(int)"><!-- --></A><H3>setChoiceSelection</H3><PRE>public void <B>setChoiceSelection</B>(int choiceSelection)</PRE><DL><DD>Sets the zero based index of the selected item.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>choiceSelection</CODE> - the zero based index of the selected item</DL></DD></DL><HR><A NAME="getTopFirst()"><!-- --></A><H3>getTopFirst</H3><PRE>int <B>getTopFirst</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setExtraMargin(float, float)"><!-- --></A><H3>setExtraMargin</H3><PRE>public void <B>setExtraMargin</B>(float extraMarginLeft, float extraMarginTop)</PRE><DL><DD>Sets extra margins in text fields to better mimic the Acrobat layout.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>extraMarginLeft</CODE> - the extra margin left<DD><CODE>extraMarginTop</CODE> - the extra margin top</DL></DD></DL><HR><A NAME="getSubstitutionFonts()"><!-- --></A><H3>getSubstitutionFonts</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> <B>getSubstitutionFonts</B>()</PRE><DL><DD>Gets the list of substitution fonts. The list is composed of <CODE>BaseFont</CODE> and can be <CODE>null</CODE>. The fonts in this list will be used if the original font doesn't contain the needed glyphs.<P><DD><DL><DT><B>Returns:</B><DD>the list</DL></DD></DL><HR><A NAME="setSubstitutionFonts(java.util.ArrayList)"><!-- --></A><H3>setSubstitutionFonts</H3><PRE>public void <B>setSubstitutionFonts</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> substitutionFonts)</PRE><DL><DD>Sets a list of substitution fonts. The list is composed of <CODE>BaseFont</CODE> and can also be <CODE>null</CODE>. The fonts in this list will be used if the original font doesn't contain the needed glyphs.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>substitutionFonts</CODE> - the list</DL></DD></DL><HR><A NAME="getExtensionFont()"><!-- --></A><H3>getExtensionFont</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>getExtensionFont</B>()</PRE><DL><DD>Gets the extensionFont. This font will be searched before the substitution fonts. It may be <code>null</code>.<P><DD><DL><DT><B>Returns:</B><DD>the extensionFont</DL></DD></DL><HR><A NAME="setExtensionFont(com.lowagie.text.pdf.BaseFont)"><!-- --></A><H3>setExtensionFont</H3><PRE>public void <B>setExtensionFont</B>(<A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> extensionFont)</PRE><DL><DD>Sets the extensionFont. This font will be searched before the substitution fonts. It may be <code>null</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>extensionFont</CODE> - New value of property extensionFont.</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> </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>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/lowagie/text/pdf/StandardDecryption.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A> <A HREF="../../../../com/lowagie/text/pdf/TrueTypeFont.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/lowagie/text/pdf/TextField.html" target="_top"><B>FRAMES</B></A> <A HREF="TextField.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -