abstract class AbstractRtfField extends Chunk implements RtfField
Modifier and Type | Field and Description |
---|---|
private static byte[] |
fldAlt
Deprecated.
|
private static byte[] |
fldDirty
Deprecated.
|
private static byte[] |
fldEdit
Deprecated.
|
private static byte[] |
fldLock
Deprecated.
|
private static byte[] |
fldPriv
Deprecated.
|
private boolean |
rtfFieldIsAlt
Deprecated.
Determines whether this RtfField shall refer to an end note.
|
private boolean |
rtfFieldIsDirty
Deprecated.
Determines whether a formatting change has been made since the
field was last updated.
|
private boolean |
rtfFieldIsLocked
Deprecated.
Determines whether this RtfField is locked, i.e.
|
private boolean |
rtfFieldIsPrivate
Deprecated.
Determines whether the field is in suitable form for
display.
|
private boolean |
rtfFieldWasEdited
Deprecated.
Determines whether text has been added, removed from thre field
result since the field was last updated.
|
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SEPARATOR, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TAB, TEXTRENDERMODE, UNDERLINE
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
Constructor and Description |
---|
AbstractRtfField(java.lang.String content,
Font font)
Deprecated.
public constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
content()
Deprecated.
empty implementation for Chunk.
|
boolean |
isAlt()
Deprecated.
Determines whether this RtfField shall refer to an end
note.
|
boolean |
isDirty()
Deprecated.
Determines whether the field was changed since the field was
last updated
|
boolean |
isLocked()
Deprecated.
Determines whtether the field is locked, i.e.
|
boolean |
isPrivate()
Deprecated.
Determines whether the field is in suitable form for display.
|
void |
setAlt(boolean rtfFieldIsAlt)
Deprecated.
Determines whether this RtfField shall refer to an end note.
|
void |
setDirty(boolean rtfFieldIsDirty)
Deprecated.
Set whether a formatting change has been made since the field
was last updated
|
void |
setEdited(boolean rtfFieldWasEdited)
Deprecated.
Set whether text has been added, removed from thre field result
since the field was last updated.
|
void |
setLocked(boolean rtfFieldIsLocked)
Deprecated.
Set whether the field can be updated.
|
void |
setPrivate(boolean rtfFieldIsPrivate)
Deprecated.
Set whether the field is in suitable form for
display.
|
boolean |
wasEdited()
Deprecated.
Determines whether text has been added, removed from the field
result since the field was last updated.
|
void |
write(RtfWriter writer,
java.io.OutputStream out)
Deprecated.
For Interface RtfField.
|
protected void |
writeRtfFieldBegin(java.io.OutputStream out)
Deprecated.
Write the beginning of an RtfField to the OutputStream.
|
protected void |
writeRtfFieldEnd(java.io.OutputStream out)
Deprecated.
Close the RtfField.
|
abstract void |
writeRtfFieldInitializationStuff(java.io.OutputStream out)
Deprecated.
Abstract method for writing custom stuff to the Field
Initialization Stuff part of an RtfField.
|
protected void |
writeRtfFieldInstBegin(java.io.OutputStream out)
Deprecated.
Write RtfField Initialization Stuff to OutputStream.
|
protected void |
writeRtfFieldInstEnd(java.io.OutputStream out)
Deprecated.
Write end of RtfField Initialization Stuff to OutputStream.
|
protected void |
writeRtfFieldModifiers(java.io.OutputStream out)
Deprecated.
Write the modifiers defined for a RtfField to the OutputStream.
|
protected void |
writeRtfFieldResultBegin(java.io.OutputStream out)
Deprecated.
Write beginning of RtfField Result to OutputStream.
|
protected void |
writeRtfFieldResultEnd(java.io.OutputStream out)
Deprecated.
Write end of RtfField Result to OutputStream.
|
abstract void |
writeRtfFieldResultStuff(java.io.OutputStream out)
Deprecated.
Abstract method for writing custom stuff to the Field Result
part of an RtfField.
|
append, getAttributes, getChunks, getContent, getFont, getHorizontalScaling, getHyphenation, getImage, getTextRise, getWidthPoint, hasAttributes, isContent, isEmpty, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type
private static final byte[] fldDirty
private static final byte[] fldPriv
private static final byte[] fldLock
private static final byte[] fldEdit
private static final byte[] fldAlt
private boolean rtfFieldIsLocked
private boolean rtfFieldIsDirty
private boolean rtfFieldWasEdited
private boolean rtfFieldIsPrivate
private boolean rtfFieldIsAlt
public AbstractRtfField(java.lang.String content, Font font)
content
- the content of the fieldfont
- the font of the fieldpublic final boolean isLocked()
public final void setLocked(boolean rtfFieldIsLocked)
rtfFieldIsLocked
- true if the field cannot be
updated, false otherwise.public final void setDirty(boolean rtfFieldIsDirty)
rtfFieldIsDirty
- true if the field was
changed since the field was last updated, false
otherwise.public final boolean isDirty()
public final void setEdited(boolean rtfFieldWasEdited)
rtfFieldWasEdited
- Determines whether text has been
added, removed from the field result since the field was last
updated (true, false otherwise..public final boolean wasEdited()
public final void setPrivate(boolean rtfFieldIsPrivate)
rtfFieldIsPrivate
- Determines whether the field is in
suitable form for display: true it can be displayed,
false it cannot be displayed.public final boolean isPrivate()
public abstract void writeRtfFieldInitializationStuff(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
public abstract void writeRtfFieldResultStuff(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
public final void setAlt(boolean rtfFieldIsAlt)
rtfFieldIsAlt
- true if this RtfField shall refer
to an end note, false otherwisepublic final boolean isAlt()
public final java.lang.String content()
public void write(RtfWriter writer, java.io.OutputStream out) throws java.io.IOException
protected final void writeRtfFieldBegin(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldModifiers(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldInstBegin(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldInstEnd(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldResultBegin(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldResultEnd(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
protected final void writeRtfFieldEnd(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException