|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.Rectangle com.lowagie.text.HeaderFooter com.lowagie.text.rtf.headerfooter.RtfHeaderFooterGroup
public class RtfHeaderFooterGroup
The RtfHeaderFooterGroup holds 0 - 3 RtfHeaderFooters that create a group of headers or footers.
Field Summary |
---|
Fields inherited from class com.lowagie.text.Rectangle |
---|
backgroundColor, border, borderColor, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, LEFT, llx, lly, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBorders |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
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, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK |
Constructor Summary | |
---|---|
RtfHeaderFooterGroup()
Constructs a RtfHeaderGroup to which you add headers/footers using via the setHeaderFooter method. |
|
RtfHeaderFooterGroup(RtfDocument doc,
HeaderFooter headerFooter,
int type)
Constructs a RtfHeaderGroup for a certain HeaderFooter |
|
RtfHeaderFooterGroup(RtfDocument doc,
int type)
Constructs a certain type of RtfHeaderFooterGroup. |
|
RtfHeaderFooterGroup(RtfDocument doc,
RtfHeaderFooterGroup headerFooter,
int type)
Constructs a RtfHeaderFooterGroup by copying the content of the original RtfHeaderFooterGroup |
|
RtfHeaderFooterGroup(RtfDocument doc,
RtfHeaderFooter headerFooter,
int type)
Constructs a RtfHeaderFooterGroup for a certain RtfHeaderFooter. |
Method Summary | |
---|---|
protected RtfHeaderFooter |
getHeaderAll()
Gets the RtfHeaderFooter for all pages |
protected RtfHeaderFooter |
getHeaderFirst()
Gets the RtfHeaderFooter for the title page |
protected RtfHeaderFooter |
getHeaderLeft()
Gets the RtfHeaderFooter for all left hand pages |
protected RtfHeaderFooter |
getHeaderRight()
Gets the RtfHeaderFooter for all right hand pages |
protected int |
getMode()
Gets the mode of this RtfHeaderFooterGroup |
boolean |
hasFacingPages()
Get whether this RtfHeaderFooterGroup has facing pages |
boolean |
hasTitlePage()
Get whether this RtfHeaderFooterGroup has a titlepage |
void |
setHasFacingPages()
Set that this RtfHeaderFooterGroup should have facing pages. |
void |
setHasTitlePage()
Set that this RtfHeaderFooterGroup should have a title page. |
void |
setHeaderFooter(HeaderFooter headerFooter,
int displayAt)
Set a HeaderFooter to be displayed at a certain position |
void |
setHeaderFooter(RtfHeaderFooter headerFooter,
int displayAt)
Set a RtfHeaderFooter to be displayed at a certain position |
void |
setInHeader(boolean inHeader)
Unused |
void |
setInTable(boolean inTable)
Unused |
void |
setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfElement belongs to |
void |
setType(int type)
Set the type of this RtfHeaderFooterGroup. |
void |
writeContent(java.io.OutputStream result)
Write the content of this RtfHeaderFooterGroup. |
Methods inherited from class com.lowagie.text.HeaderFooter |
---|
alignment, getAfter, getBefore, isNumbered, paragraph, setAlignment, setPageNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RtfHeaderFooterGroup()
public RtfHeaderFooterGroup(RtfDocument doc, int type)
doc
- The RtfDocument this RtfHeaderFooter belongs totype
- The type of RtfHeaderFooterGroup to createpublic RtfHeaderFooterGroup(RtfDocument doc, RtfHeaderFooterGroup headerFooter, int type)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The RtfHeaderFooterGroup to copytype
- The type of RtfHeaderFooterGroup to createpublic RtfHeaderFooterGroup(RtfDocument doc, RtfHeaderFooter headerFooter, int type)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The RtfHeaderFooter to displaytype
- The type of RtfHeaderFooterGroup to createpublic RtfHeaderFooterGroup(RtfDocument doc, HeaderFooter headerFooter, int type)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The HeaderFooter to displaytype
- The type of RtfHeaderFooterGroup to createMethod Detail |
---|
public void setRtfDocument(RtfDocument doc)
setRtfDocument
in interface RtfBasicElement
doc
- The RtfDocument to usepublic void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
result
- The OutputStream
to write the content to
java.io.IOException
public void setHeaderFooter(RtfHeaderFooter headerFooter, int displayAt)
headerFooter
- The RtfHeaderFooter to displaydisplayAt
- The display location to usepublic void setHeaderFooter(HeaderFooter headerFooter, int displayAt)
headerFooter
- The HeaderFooter to setdisplayAt
- The display location to usepublic void setHasTitlePage()
public void setHasFacingPages()
public boolean hasTitlePage()
public boolean hasFacingPages()
public void setInTable(boolean inTable)
setInTable
in interface RtfBasicElement
inTable
- public void setInHeader(boolean inHeader)
setInHeader
in interface RtfBasicElement
inHeader
- public void setType(int type)
type
- The type to useprotected int getMode()
protected RtfHeaderFooter getHeaderAll()
protected RtfHeaderFooter getHeaderFirst()
protected RtfHeaderFooter getHeaderLeft()
protected RtfHeaderFooter getHeaderRight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |