com.lowagie.text.rtf
abstract class AbstractRtfField extends Chunk implements RtfField
Deprecated: Please move to the RtfWriter2 and associated classes.
This class implements an abstract RtfField. This class is based on the RtfWriter-package from Mark Hall. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.Since: Mon Aug 19 14:50:39 2002
Version: $Id: AbstractRtfField.java,v 1.19 2006/09/14 23:10:54 xlv Exp $
Field Summary | |
---|---|
static byte[] | fldAlt |
static byte[] | fldDirty |
static byte[] | fldEdit |
static byte[] | fldLock |
static byte[] | fldPriv |
boolean | rtfFieldIsAlt
Determines whether this RtfField shall refer to an end note. |
boolean | rtfFieldIsDirty
Determines whether a formatting change has been made since the
field was last updated. |
boolean | rtfFieldIsLocked
Determines whether this RtfField is locked, i.e. it cannot be
updated. |
boolean | rtfFieldIsPrivate
Determines whether the field is in suitable form for
display. |
boolean | rtfFieldWasEdited
Determines whether text has been added, removed from thre field
result since the field was last updated. |
Constructor Summary | |
---|---|
AbstractRtfField(String content, Font font)
public constructor |
Method Summary | |
---|---|
String | content()
empty implementation for Chunk. |
boolean | isAlt()
Determines whether this RtfField shall refer to an end
note. |
boolean | isDirty()
Determines whether the field was changed since the field was
last updated |
boolean | isLocked()
Determines whtether the field is locked, i.e. it cannot be
updated.
|
boolean | isPrivate()
Determines whether the field is in suitable form for display. |
void | setAlt(boolean rtfFieldIsAlt)
Determines whether this RtfField shall refer to an end note. |
void | setDirty(boolean rtfFieldIsDirty)
Set whether a formatting change has been made since the field
was last updated |
void | setEdited(boolean rtfFieldWasEdited)
Set whether text has been added, removed from thre field result
since the field was last updated. |
void | setLocked(boolean rtfFieldIsLocked)
Set whether the field can be updated.
|
void | setPrivate(boolean rtfFieldIsPrivate)
Set whether the field is in suitable form for
display. |
boolean | wasEdited()
Determines whether text has been added, removed from the field
result since the field was last updated. |
void | write(RtfWriter writer, OutputStream out)
For Interface RtfField. |
protected void | writeRtfFieldBegin(OutputStream out)
Write the beginning of an RtfField to the OutputStream. |
protected void | writeRtfFieldEnd(OutputStream out)
Close the RtfField. |
abstract void | writeRtfFieldInitializationStuff(OutputStream out)
Abstract method for writing custom stuff to the Field
Initialization Stuff part of an RtfField. |
protected void | writeRtfFieldInstBegin(OutputStream out)
Write RtfField Initialization Stuff to OutputStream. |
protected void | writeRtfFieldInstEnd(OutputStream out)
Write end of RtfField Initialization Stuff to OutputStream. |
protected void | writeRtfFieldModifiers(OutputStream out)
Write the modifiers defined for a RtfField to the OutputStream. |
protected void | writeRtfFieldResultBegin(OutputStream out)
Write beginning of RtfField Result to OutputStream. |
protected void | writeRtfFieldResultEnd(OutputStream out)
Write end of RtfField Result to OutputStream. |
abstract void | writeRtfFieldResultStuff(OutputStream out)
Abstract method for writing custom stuff to the Field Result
part of an RtfField. |
Parameters: content the content of the field font the font of the field
Returns: an empty string
Returns: true if this RtfField shall refer to an end note, false otherwise.
Returns: true if the field was changed since the field was last updated, false otherwise.
Returns: true iff the field cannot be updated, false otherwise.
Returns: whether the field is in suitable form for display: true yes, false no it cannot be displayed.
Parameters: rtfFieldIsAlt true if this RtfField shall refer to an end note, false otherwise
Parameters: rtfFieldIsDirty true if the field was changed since the field was last updated, false otherwise.
Parameters: rtfFieldWasEdited Determines whether text has been added, removed from the field result since the field was last updated (true, false otherwise..
Parameters: rtfFieldIsLocked true if the field cannot be updated, false otherwise.
Parameters: rtfFieldIsPrivate Determines whether the field is in suitable form for display: true it can be displayed, false it cannot be displayed.
Returns: rtfFieldWasEdited true if text has been added, removed from the field result since the field was last updated, false otherwise.
Parameters: writer out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException
Parameters: out
Throws: IOException