|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.Chunk
com.lowagie.text.rtf.AbstractRtfField
abstract class AbstractRtfField
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.
Field Summary | |
---|---|
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. |
Fields inherited from class com.lowagie.text.Chunk |
---|
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TEXTRENDERMODE, UNDERLINE |
Fields inherited from interface com.lowagie.text.Element |
---|
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, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
Constructor Summary | |
---|---|
AbstractRtfField(java.lang.String content,
Font font)
Deprecated. public constructor |
Method Summary | |
---|---|
java.lang.String |
content()
Deprecated. Use getContent() instead |
java.lang.String |
getContent()
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. |
Methods inherited from class com.lowagie.text.Chunk |
---|
addToArray, append, font, getAttributes, getChunks, getFont, getHorizontalScaling, getImage, getKeySet, getTextRise, getWidthPoint, hasAttributes, isEmpty, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public AbstractRtfField(java.lang.String content, Font font)
content
- the content of the fieldfont
- the font of the fieldMethod Detail |
---|
public 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()
getContent()
instead
content
in class Chunk
public final java.lang.String getContent()
getContent
in class Chunk
public void write(RtfWriter writer, java.io.OutputStream out) throws java.io.IOException
write
in interface RtfField
writer
- out
-
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
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |