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

📄 basefield.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setFont(com.lowagie.text.pdf.BaseFont)">setFont</A></B>(<A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A>&nbsp;font)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the text font.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setFontSize(float)">setFontSize</A></B>(float&nbsp;fontSize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the font size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setMaxCharacterLength(int)">setMaxCharacterLength</A></B>(int&nbsp;maxCharacterLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum length of the field's text, in characters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setOptions(int)">setOptions</A></B>(int&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the option flags.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setRotation(int)">setRotation</A></B>(int&nbsp;rotation)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the field rotation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setRotationFromPage(com.lowagie.text.Rectangle)">setRotationFromPage</A></B>(<A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A>&nbsp;page)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to set the field rotation the same as the page rotation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setText(java.lang.String)">setText</A></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>&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the text for text fields.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setTextColor(java.awt.Color)">setTextColor</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A>&nbsp;textColor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the text color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setVisibility(int)">setVisibility</A></B>(int&nbsp;visibility)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the field visibility flag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#setWriter(com.lowagie.text.pdf.PdfWriter)">setWriter</A></B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html" title="class in com.lowagie.text.pdf">PdfWriter</A>&nbsp;writer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Setter for property writer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BaseField.html#trimRight(java.lang.StringBuffer)">trimRight</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A>&nbsp;buf)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<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.4/docs/api/java/lang/Object.html?is-external=true" 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.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<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="BORDER_WIDTH_THIN"><!-- --></A><H3>BORDER_WIDTH_THIN</H3><PRE>public static final float <B>BORDER_WIDTH_THIN</B></PRE><DL><DD>A thin border with 1 point width.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.BORDER_WIDTH_THIN">Constant Field Values</A></DL></DL><HR><A NAME="BORDER_WIDTH_MEDIUM"><!-- --></A><H3>BORDER_WIDTH_MEDIUM</H3><PRE>public static final float <B>BORDER_WIDTH_MEDIUM</B></PRE><DL><DD>A medium border with 2 point width.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.BORDER_WIDTH_MEDIUM">Constant Field Values</A></DL></DL><HR><A NAME="BORDER_WIDTH_THICK"><!-- --></A><H3>BORDER_WIDTH_THICK</H3><PRE>public static final float <B>BORDER_WIDTH_THICK</B></PRE><DL><DD>A thick border with 3 point width.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.BORDER_WIDTH_THICK">Constant Field Values</A></DL></DL><HR><A NAME="VISIBLE"><!-- --></A><H3>VISIBLE</H3><PRE>public static final int <B>VISIBLE</B></PRE><DL><DD>The field is visible.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.VISIBLE">Constant Field Values</A></DL></DL><HR><A NAME="HIDDEN"><!-- --></A><H3>HIDDEN</H3><PRE>public static final int <B>HIDDEN</B></PRE><DL><DD>The field is hidden.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.HIDDEN">Constant Field Values</A></DL></DL><HR><A NAME="VISIBLE_BUT_DOES_NOT_PRINT"><!-- --></A><H3>VISIBLE_BUT_DOES_NOT_PRINT</H3><PRE>public static final int <B>VISIBLE_BUT_DOES_NOT_PRINT</B></PRE><DL><DD>The field is visible but does not print.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.VISIBLE_BUT_DOES_NOT_PRINT">Constant Field Values</A></DL></DL><HR><A NAME="HIDDEN_BUT_PRINTABLE"><!-- --></A><H3>HIDDEN_BUT_PRINTABLE</H3><PRE>public static final int <B>HIDDEN_BUT_PRINTABLE</B></PRE><DL><DD>The field is hidden but is printable.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.HIDDEN_BUT_PRINTABLE">Constant Field Values</A></DL></DL><HR><A NAME="READ_ONLY"><!-- --></A><H3>READ_ONLY</H3><PRE>public static final int <B>READ_ONLY</B></PRE><DL><DD>The user may not change the value of the field.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.READ_ONLY">Constant Field Values</A></DL></DL><HR><A NAME="REQUIRED"><!-- --></A><H3>REQUIRED</H3><PRE>public static final int <B>REQUIRED</B></PRE><DL><DD>The field must have a value at the time it is exported by a submit-form action.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.REQUIRED">Constant Field Values</A></DL></DL><HR><A NAME="MULTILINE"><!-- --></A><H3>MULTILINE</H3><PRE>public static final int <B>MULTILINE</B></PRE><DL><DD>The field may contain multiple lines of text. This flag is only meaningful with text fields.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.MULTILINE">Constant Field Values</A></DL></DL><HR><A NAME="DO_NOT_SCROLL"><!-- --></A><H3>DO_NOT_SCROLL</H3><PRE>public static final int <B>DO_NOT_SCROLL</B></PRE><DL><DD>The field will not scroll (horizontally for single-line fields, vertically for multiple-line fields) to accommodate more text than will fit within its annotation rectangle. Once the field is full, no further text will be accepted.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.DO_NOT_SCROLL">Constant Field Values</A></DL></DL><HR><A NAME="PASSWORD"><!-- --></A><H3>PASSWORD</H3><PRE>public static final int <B>PASSWORD</B></PRE><DL><DD>The field is intended for entering a secure password that should not be echoed visibly to the screen.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.PASSWORD">Constant Field Values</A></DL></DL><HR><A NAME="FILE_SELECTION"><!-- --></A><H3>FILE_SELECTION</H3><PRE>public static final int <B>FILE_SELECTION</B></PRE><DL><DD>The text entered in the field represents the pathname of a file whose contents are to be submitted as the value of the field.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.FILE_SELECTION">Constant Field Values</A></DL></DL><HR><A NAME="DO_NOT_SPELL_CHECK"><!-- --></A><H3>DO_NOT_SPELL_CHECK</H3><PRE>public static final int <B>DO_NOT_SPELL_CHECK</B></PRE><DL><DD>The text entered in the field will not be spell-checked. This flag is meaningful only in text fields and in combo fields with the <CODE>EDIT</CODE> flag set.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.DO_NOT_SPELL_CHECK">Constant Field Values</A></DL></DL><HR><A NAME="EDIT"><!-- --></A><H3>EDIT</H3><PRE>public static final int <B>EDIT</B></PRE><DL><DD>If set the combo box includes an editable text box as well as a drop list; if clear, it includes only a drop list. This flag is only meaningful with combo fields.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.EDIT">Constant Field Values</A></DL></DL><HR><A NAME="COMB"><!-- --></A><H3>COMB</H3><PRE>public static final int <B>COMB</B></PRE><DL><DD>combo box flag.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BaseField.COMB">Constant Field Values</A></DL></DL><HR><A NAME="borderWidth"><!-- --></A><H3>borderWidth</H3><PRE>protected float <B>borderWidth</B></PRE><DL><DL></DL></DL><HR><A NAME="borderStyle"><!-- --></A><H3>borderStyle</H3><PRE>protected int <B>borderStyle</B></PRE><DL><DL></DL></DL><HR><A NAME="borderColor"><!-- --></A><H3>

⌨️ 快捷键说明

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