public class RtfHeaderFooter extends HeaderFooter implements RtfBasicElement
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
content
The content of this RtfHeaderFooter
|
static int |
DISPLAY_ALL_PAGES
Constant for displaying the header/footer on all pages
|
static int |
DISPLAY_FIRST_PAGE
Constant for displaying the header/footer on the first page
|
static int |
DISPLAY_LEFT_PAGES
Constant for displaying the header/footer on all left hand pages
|
static int |
DISPLAY_RIGHT_PAGES
Constant for displaying the header/footer on all right hand pages
|
private int |
displayAt
The display location of this RtfHeaderFooter.
|
private RtfDocument |
document
The RtfDocument this RtfHeaderFooter belongs to
|
private static byte[] |
FOOTER_ALL
Constant for a footer on all pages
|
private static byte[] |
FOOTER_FIRST
Constant for a footer on the first page
|
private static byte[] |
FOOTER_LEFT
Constnat for a footer on the left hand pages
|
private static byte[] |
FOOTER_RIGHT
Constant for a footer on the right hand pages
|
private static byte[] |
HEADER_ALL
Constant for a header on all pages
|
private static byte[] |
HEADER_FIRST
Constant for a header on the first page
|
private static byte[] |
HEADER_LEFT
Constant for a header on all left hand pages
|
private static byte[] |
HEADER_RIGHT
Constant for a header on all right hand pages
|
private int |
type
The display type of this RtfHeaderFooter.
|
static int |
TYPE_FOOTER
Constant for the footer type
|
static int |
TYPE_HEADER
Constant for the header type
|
background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, color, LEFT, llx, lly, markupAttributes, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBorders
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
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, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
Modifier | Constructor and Description |
---|---|
|
RtfHeaderFooter(Element element)
Constructs a RtfHeaderFooter for any Element.
|
protected |
RtfHeaderFooter(RtfDocument doc,
HeaderFooter headerFooter)
Constructs a RtfHeaderFooter for a HeaderFooter.
|
protected |
RtfHeaderFooter(RtfDocument doc,
HeaderFooter headerFooter,
int type,
int displayAt)
Constructs a RtfHeaderFooter based on a HeaderFooter with a certain type and displayAt
location.
|
protected |
RtfHeaderFooter(RtfDocument doc,
RtfHeaderFooter headerFooter,
int displayAt)
Constructs a RtfHeaderFooter as a copy of an existing RtfHeaderFooter.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
getContent()
Gets the content of this RtfHeaderFooter
|
void |
setAlignment(int alignment)
Set the alignment of this RtfHeaderFooter.
|
void |
setDisplayAt(int displayAt)
Sets the display location of this RtfHeaderFooter
|
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)
Sets the type of this RtfHeaderFooter
|
byte[] |
write()
Writes the content of this RtfHeaderFooter
|
alignment, getAfter, getBefore, isNumbered, paragraph, setPageNumber
backgroundColor, border, borderColor, borderWidth, bottom, bottom, cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getChunks, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getRotation, grayFill, hasBorder, hasBorders, height, isUseVariableBorders, left, left, normalize, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setMarkupAttribute, setMarkupAttributes, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, top, top, toString, type, width
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, setMarkupAttribute, setMarkupAttributes
public static final int TYPE_HEADER
public static final int TYPE_FOOTER
public static final int DISPLAY_FIRST_PAGE
public static final int DISPLAY_ALL_PAGES
public static final int DISPLAY_LEFT_PAGES
public static final int DISPLAY_RIGHT_PAGES
private static final byte[] HEADER_ALL
private static final byte[] HEADER_FIRST
private static final byte[] HEADER_LEFT
private static final byte[] HEADER_RIGHT
private static final byte[] FOOTER_ALL
private static final byte[] FOOTER_FIRST
private static final byte[] FOOTER_LEFT
private static final byte[] FOOTER_RIGHT
private RtfDocument document
private java.lang.Object content
private int type
private int displayAt
protected RtfHeaderFooter(RtfDocument doc, HeaderFooter headerFooter, int type, int displayAt)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The HeaderFooter to base this RtfHeaderFooter ontype
- The type of RtfHeaderFooterdisplayAt
- The display location of this RtfHeaderFooterprotected RtfHeaderFooter(RtfDocument doc, RtfHeaderFooter headerFooter, int displayAt)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The RtfHeaderFooter to copydisplayAt
- The display location of this RtfHeaderFooterprotected RtfHeaderFooter(RtfDocument doc, HeaderFooter headerFooter)
doc
- The RtfDocument this RtfHeaderFooter belongs toheaderFooter
- The HeaderFooter to base this RtfHeaderFooter onpublic RtfHeaderFooter(Element element)
element
- The Element to display as content of this RtfHeaderFooterpublic void setRtfDocument(RtfDocument doc)
setRtfDocument
in interface RtfBasicElement
doc
- The RtfDocument to usepublic byte[] write()
write
in interface RtfBasicElement
public void setDisplayAt(int displayAt)
displayAt
- The display location to use.public void setType(int type)
type
- The type to use.private java.lang.Object getContent()
public void setInTable(boolean inTable)
setInTable
in interface RtfBasicElement
inTable
- public void setInHeader(boolean inHeader)
setInHeader
in interface RtfBasicElement
inHeader
- public void setAlignment(int alignment)
setAlignment
in class HeaderFooter
alignment
- the new alignment