📄 rtffield.html
字号:
since the RtfField by itself does not do anything. Use one of the subclasses instead.<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this RtfField belongs to.<DD><CODE>font</CODE> - The Font this RtfField should use</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="setRtfDocument(com.lowagie.text.rtf.document.RtfDocument)"><!-- --></A><H3>setRtfDocument</H3><PRE>public void <B>setRtfDocument</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc)</PRE><DL><DD>Sets the RtfDocument this RtfElement belongs to<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#setRtfDocument(com.lowagie.text.rtf.document.RtfDocument)">setRtfDocument</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument to use</DL></DD></DL><HR><A NAME="writeFieldBegin(java.io.OutputStream)"><!-- --></A><H3>writeFieldBegin</H3><PRE>private void <B>writeFieldBegin</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the field beginning. Also writes field properties.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeFieldInstBegin(java.io.OutputStream)"><!-- --></A><H3>writeFieldInstBegin</H3><PRE>private void <B>writeFieldInstBegin</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the beginning of the field instruction area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeFieldInstContent(java.io.OutputStream)"><!-- --></A><H3>writeFieldInstContent</H3><PRE>protected abstract void <B>writeFieldInstContent</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the content of the field instruction area. Override this method in your subclasses.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeFieldInstEnd(java.io.OutputStream)"><!-- --></A><H3>writeFieldInstEnd</H3><PRE>private void <B>writeFieldInstEnd</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the end of the field instruction area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeFieldResultBegin(java.io.OutputStream)"><!-- --></A><H3>writeFieldResultBegin</H3><PRE>private void <B>writeFieldResultBegin</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the beginning of the field result area<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="writeFieldResultContent(java.io.OutputStream)"><!-- --></A><H3>writeFieldResultContent</H3><PRE>protected abstract void <B>writeFieldResultContent</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the content of the pre-calculated field result. Override this method in your subclasses.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on i/o errors.</DL></DD></DL><HR><A NAME="writeFieldResultEnd(java.io.OutputStream)"><!-- --></A><H3>writeFieldResultEnd</H3><PRE>private void <B>writeFieldResultEnd</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the end of the field result area<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on i/o errors.</DL></DD></DL><HR><A NAME="writeFieldEnd(java.io.OutputStream)"><!-- --></A><H3>writeFieldEnd</H3><PRE>private void <B>writeFieldEnd</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the end of the field<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on i/o errors.</DL></DD></DL><HR><A NAME="writeContent(java.io.OutputStream)"><!-- --></A><H3>writeContent</H3><PRE>public void <B>writeContent</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the field to the <code>OutputStream</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#writeContent(java.io.OutputStream)">writeContent</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write to.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on i/o errors.</DL></DD></DL><HR><A NAME="isFieldAlt()"><!-- --></A><H3>isFieldAlt</H3><PRE>public boolean <B>isFieldAlt</B>()</PRE><DL><DD>Get whether this field is an alt field<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns whether this field is an alt field</DL></DD></DL><HR><A NAME="setFieldAlt(boolean)"><!-- --></A><H3>setFieldAlt</H3><PRE>public void <B>setFieldAlt</B>(boolean fieldAlt)</PRE><DL><DD>Set whether this field is an alt field<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fieldAlt</CODE> - The value to use</DL></DD></DL><HR><A NAME="isFieldDirty()"><!-- --></A><H3>isFieldDirty</H3><PRE>public boolean <B>isFieldDirty</B>()</PRE><DL><DD>Get whether this field is dirty<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns whether this field is dirty</DL></DD></DL><HR><A NAME="setFieldDirty(boolean)"><!-- --></A><H3>setFieldDirty</H3><PRE>public void <B>setFieldDirty</B>(boolean fieldDirty)</PRE><DL><DD>Set whether this field is dirty<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fieldDirty</CODE> - The value to use</DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -