com.lowagie.text.rtf

Class RtfHeaderFooters

public class RtfHeaderFooters extends HeaderFooter

Deprecated: Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.headerfooter.RtfHeaderFooterGroup replaces the functionality of this class.

This HeaderFooter specialization contains some headers or footers for several pages. Is a list of headerFooters but also a sub class of header footer, to change as less as possible of the current API. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2. This class is based on the RtfWriter-package from Mark Hall.

Version: $Revision: 1.23 $Date: 2006/09/12 13:12:53 $

Author: Steffen.Stundzig (Steffen.Stundzig@smb-tec.com) Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
static intALL_PAGES
an attribute value
HeaderFooterallPages
header or footer placeholder
HeaderFooterfirstPage
header or footer placeholder
static intFIRST_PAGE
an attribute value
HeaderFooterleftPages
header or footer placeholder
static intLEFT_PAGES
an attribute value
HeaderFooterrightPages
header or footer placeholder
static intRIGHT_PAGES
an attribute value
Constructor Summary
RtfHeaderFooters()
Contructs a HeaderFooters object
RtfHeaderFooters(Phrase before, Phrase after)
Contructs a HeaderFooters object
RtfHeaderFooters(Phrase before, boolean numbered)
Contructs a HeaderFooters object
Method Summary
HeaderFooterget(int type)
Returns a type of HeaderFooter object registered in this HeaderFooters object.
voidset(int type, HeaderFooter hf)
Adds a HeaderFooter to this HeaderFooters object

Field Detail

ALL_PAGES

public static final int ALL_PAGES
an attribute value

allPages

private HeaderFooter allPages
header or footer placeholder

firstPage

private HeaderFooter firstPage
header or footer placeholder

FIRST_PAGE

public static final int FIRST_PAGE
an attribute value

leftPages

private HeaderFooter leftPages
header or footer placeholder

LEFT_PAGES

public static final int LEFT_PAGES
an attribute value

rightPages

private HeaderFooter rightPages
header or footer placeholder

RIGHT_PAGES

public static final int RIGHT_PAGES
an attribute value

Constructor Detail

RtfHeaderFooters

public RtfHeaderFooters()
Contructs a HeaderFooters object

RtfHeaderFooters

public RtfHeaderFooters(Phrase before, Phrase after)
Contructs a HeaderFooters object

Parameters: before after

RtfHeaderFooters

public RtfHeaderFooters(Phrase before, boolean numbered)
Contructs a HeaderFooters object

Parameters: before numbered

Method Detail

get

public HeaderFooter get(int type)
Returns a type of HeaderFooter object registered in this HeaderFooters object.

Parameters: type type of the HeaderFooter object

Returns: a HeaderFooter object

set

public void set(int type, HeaderFooter hf)
Adds a HeaderFooter to this HeaderFooters object

Parameters: type hf