Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » [javadoc | source]
com.lowagie.text.rtf
abstract class: AbstractRtfField [javadoc | source]
java.lang.Object
   com.lowagie.text.Chunk
      com.lowagie.text.rtf.AbstractRtfField

All Implemented Interfaces:
    RtfField, Element

Direct Known Subclasses:
    GenericRtfField, RtfPageNumber

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.
Fields inherited from com.lowagie.text.Chunk:
OBJECT_REPLACEMENT_CHARACTER,  NEWLINE,  NEXTPAGE,  content,  font,  attributes,  SEPARATOR,  TAB,  HSCALE,  UNDERLINE,  SUBSUPSCRIPT,  SKEW,  BACKGROUND,  TEXTRENDERMODE,  SPLITCHARACTER,  HYPHENATION,  REMOTEGOTO,  LOCALGOTO,  LOCALDESTINATION,  GENERICTAG,  IMAGE,  ACTION,  NEWPAGE,  PDFANNOTATION,  COLOR,  ENCODING
Constructor:
 public AbstractRtfField(String content,
    Font font) 
    public constructor
    Parameters:
    content - the content of the field
    font - the font of the field
Method from com.lowagie.text.rtf.AbstractRtfField Summary:
content,   isAlt,   isDirty,   isLocked,   isPrivate,   setAlt,   setDirty,   setEdited,   setLocked,   setPrivate,   wasEdited,   write,   writeRtfFieldBegin,   writeRtfFieldEnd,   writeRtfFieldInitializationStuff,   writeRtfFieldInstBegin,   writeRtfFieldInstEnd,   writeRtfFieldModifiers,   writeRtfFieldResultBegin,   writeRtfFieldResultEnd,   writeRtfFieldResultStuff
Methods from com.lowagie.text.Chunk:
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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.AbstractRtfField Detail:
 public final String content() 
    empty implementation for Chunk.
 public final boolean isAlt() 
    Determines whether this RtfField shall refer to an end note.
 public final boolean isDirty() 
    Determines whether the field was changed since the field was last updated
 public final boolean isLocked() 
    Determines whtether the field is locked, i.e. it cannot be updated.
 public final boolean isPrivate() 
    Determines whether the field is in suitable form for display.
 public final  void setAlt(boolean rtfFieldIsAlt) 
    Determines whether this RtfField shall refer to an end note.
 public final  void setDirty(boolean rtfFieldIsDirty) 
    Set whether a formatting change has been made since the field was last updated
 public final  void setEdited(boolean rtfFieldWasEdited) 
    Set whether text has been added, removed from thre field result since the field was last updated.
 public final  void setLocked(boolean rtfFieldIsLocked) 
    Set whether the field can be updated.
 public final  void setPrivate(boolean rtfFieldIsPrivate) 
    Set whether the field is in suitable form for display. I.e. it's not a field with a picture as field result
 public final boolean wasEdited() 
    Determines whether text has been added, removed from the field result since the field was last updated.
 public  void write(RtfWriter writer,
    OutputStream out) throws IOException 
    For Interface RtfField.
 protected final  void writeRtfFieldBegin(OutputStream out) throws IOException 
    Write the beginning of an RtfField to the OutputStream.
 protected final  void writeRtfFieldEnd(OutputStream out) throws IOException 
    Close the RtfField.
 abstract public  void writeRtfFieldInitializationStuff(OutputStream out) throws IOException
    Abstract method for writing custom stuff to the Field Initialization Stuff part of an RtfField.
 protected final  void writeRtfFieldInstBegin(OutputStream out) throws IOException 
    Write RtfField Initialization Stuff to OutputStream.
 protected final  void writeRtfFieldInstEnd(OutputStream out) throws IOException 
    Write end of RtfField Initialization Stuff to OutputStream.
 protected final  void writeRtfFieldModifiers(OutputStream out) throws IOException 
    Write the modifiers defined for a RtfField to the OutputStream.
 protected final  void writeRtfFieldResultBegin(OutputStream out) throws IOException 
    Write beginning of RtfField Result to OutputStream.
 protected final  void writeRtfFieldResultEnd(OutputStream out) throws IOException 
    Write end of RtfField Result to OutputStream.
 abstract public  void writeRtfFieldResultStuff(OutputStream out) throws IOException
    Abstract method for writing custom stuff to the Field Result part of an RtfField.