📄 basefield.html
字号:
<A NAME="getBorderColor()"><!-- --></A><H3>getBorderColor</H3><PRE>public <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> <B>getBorderColor</B>()</PRE><DL><DD>Gets the border color.<P><DD><DL><DT><B>Returns:</B><DD>the border color</DL></DD></DL><HR><A NAME="setBorderColor(java.awt.Color)"><!-- --></A><H3>setBorderColor</H3><PRE>public void <B>setBorderColor</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> borderColor)</PRE><DL><DD>Sets the border color. Set to <CODE>null</CODE> to remove the border.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>borderColor</CODE> - the border color</DL></DD></DL><HR><A NAME="getBackgroundColor()"><!-- --></A><H3>getBackgroundColor</H3><PRE>public <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> <B>getBackgroundColor</B>()</PRE><DL><DD>Gets the background color.<P><DD><DL><DT><B>Returns:</B><DD>the background color</DL></DD></DL><HR><A NAME="setBackgroundColor(java.awt.Color)"><!-- --></A><H3>setBackgroundColor</H3><PRE>public void <B>setBackgroundColor</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> backgroundColor)</PRE><DL><DD>Sets the background color. Set to <CODE>null</CODE> for transparent background.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>backgroundColor</CODE> - the background color</DL></DD></DL><HR><A NAME="getTextColor()"><!-- --></A><H3>getTextColor</H3><PRE>public <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> <B>getTextColor</B>()</PRE><DL><DD>Gets the text color.<P><DD><DL><DT><B>Returns:</B><DD>the text color</DL></DD></DL><HR><A NAME="setTextColor(java.awt.Color)"><!-- --></A><H3>setTextColor</H3><PRE>public void <B>setTextColor</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> textColor)</PRE><DL><DD>Sets the text color. If <CODE>null</CODE> the color used will be black.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>textColor</CODE> - the text color</DL></DD></DL><HR><A NAME="getFont()"><!-- --></A><H3>getFont</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> <B>getFont</B>()</PRE><DL><DD>Gets the text font.<P><DD><DL><DT><B>Returns:</B><DD>the text font</DL></DD></DL><HR><A NAME="setFont(com.lowagie.text.pdf.BaseFont)"><!-- --></A><H3>setFont</H3><PRE>public void <B>setFont</B>(<A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A> font)</PRE><DL><DD>Sets the text font. If <CODE>null</CODE> then Helvetica will be used.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the text font</DL></DD></DL><HR><A NAME="getFontSize()"><!-- --></A><H3>getFontSize</H3><PRE>public float <B>getFontSize</B>()</PRE><DL><DD>Gets the font size.<P><DD><DL><DT><B>Returns:</B><DD>the font size</DL></DD></DL><HR><A NAME="setFontSize(float)"><!-- --></A><H3>setFontSize</H3><PRE>public void <B>setFontSize</B>(float fontSize)</PRE><DL><DD>Sets the font size. If 0 then auto-sizing will be used but only for text fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fontSize</CODE> - the font size</DL></DD></DL><HR><A NAME="getAlignment()"><!-- --></A><H3>getAlignment</H3><PRE>public int <B>getAlignment</B>()</PRE><DL><DD>Gets the text horizontal alignment.<P><DD><DL><DT><B>Returns:</B><DD>the text horizontal alignment</DL></DD></DL><HR><A NAME="setAlignment(int)"><!-- --></A><H3>setAlignment</H3><PRE>public void <B>setAlignment</B>(int alignment)</PRE><DL><DD>Sets the text horizontal alignment. It can be <CODE>Element.ALIGN_LEFT</CODE>, <CODE>Element.ALIGN_CENTER</CODE> and <CODE>Element.ALIGN_RIGHT</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the text horizontal alignment</DL></DD></DL><HR><A NAME="getText()"><!-- --></A><H3>getText</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>getText</B>()</PRE><DL><DD>Gets the text.<P><DD><DL><DT><B>Returns:</B><DD>the text</DL></DD></DL><HR><A NAME="setText(java.lang.String)"><!-- --></A><H3>setText</H3><PRE>public void <B>setText</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> text)</PRE><DL><DD>Sets the text for text fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text</DL></DD></DL><HR><A NAME="getBox()"><!-- --></A><H3>getBox</H3><PRE>public <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> <B>getBox</B>()</PRE><DL><DD>Gets the field dimension and position.<P><DD><DL><DT><B>Returns:</B><DD>the field dimension and position</DL></DD></DL><HR><A NAME="setBox(com.lowagie.text.Rectangle)"><!-- --></A><H3>setBox</H3><PRE>public void <B>setBox</B>(<A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> box)</PRE><DL><DD>Sets the field dimension and position.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>box</CODE> - the field dimension and position</DL></DD></DL><HR><A NAME="getRotation()"><!-- --></A><H3>getRotation</H3><PRE>public int <B>getRotation</B>()</PRE><DL><DD>Gets the field rotation.<P><DD><DL><DT><B>Returns:</B><DD>the field rotation</DL></DD></DL><HR><A NAME="setRotation(int)"><!-- --></A><H3>setRotation</H3><PRE>public void <B>setRotation</B>(int rotation)</PRE><DL><DD>Sets the field rotation. This value should be the same as the page rotation where the field will be shown.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rotation</CODE> - the field rotation</DL></DD></DL><HR><A NAME="setRotationFromPage(com.lowagie.text.Rectangle)"><!-- --></A><H3>setRotationFromPage</H3><PRE>public void <B>setRotationFromPage</B>(<A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> page)</PRE><DL><DD>Convenience method to set the field rotation the same as the page rotation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>page</CODE> - the page</DL></DD></DL><HR><A NAME="getVisibility()"><!-- --></A><H3>getVisibility</H3><PRE>public int <B>getVisibility</B>()</PRE><DL><DD>Gets the field visibility flag.<P><DD><DL><DT><B>Returns:</B><DD>the field visibility flag</DL></DD></DL><HR><A NAME="setVisibility(int)"><!-- --></A><H3>setVisibility</H3><PRE>public void <B>setVisibility</B>(int visibility)</PRE><DL><DD>Sets the field visibility flag. This flags can be one of <CODE>VISIBLE</CODE>, <CODE>HIDDEN</CODE>, <CODE>VISIBLE_BUT_DOES_NOT_PRINT</CODE> and <CODE>HIDDEN_BUT_PRINTABLE</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visibility</CODE> - field visibility flag</DL></DD></DL><HR><A NAME="getFieldName()"><!-- --></A><H3>getFieldName</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>getFieldName</B>()</PRE><DL><DD>Gets the field name.<P><DD><DL><DT><B>Returns:</B><DD>the field name</DL></DD></DL><HR><A NAME="setFieldName(java.lang.String)"><!-- --></A><H3>setFieldName</H3><PRE>public void <B>setFieldName</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> fieldName)</PRE><DL><DD>Sets the field name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the field name. If <CODE>null</CODE> only the widget keys will be included in the field allowing it to be used as a kid field.</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public int <B>getOptions</B>()</PRE><DL><DD>Gets the option flags.<P><DD><DL><DT><B>Returns:</B><DD>the option flags</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -