|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.tools.BuilderContext
public class BuilderContext
A BuilderContext holds context information when building an RTF document.
This class was originally developed by Bertrand Delacretaz bdelacretaz@codeconsult.ch for the JFOR project and is now integrated into FOP.This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Andreas Putz (a.putz@skynamics.com), and Peter Herweg (pherweg@web.de).
Constructor Summary | |
---|---|
BuilderContext(IRtfOptions rtfOptions)
Construct a builder context. |
Method Summary | |
---|---|
RtfContainer |
getContainer(java.lang.Class containerClass,
boolean required,
java.lang.Object forWhichBuilder)
Find the "nearest" container that implements the given interface on our stack. |
TableContext |
getTableContext()
|
void |
popContainer()
pop the topmost RtfContainer from our stack |
void |
popTableContext()
Pop a TableContext from our stack. |
void |
pushContainer(RtfContainer c)
Push an RtfContainer on our stack. |
void |
pushTableContext(TableContext tc)
Push a TableContext to our stack. |
void |
replaceContainer(RtfContainer oldC,
RtfContainer newC)
In some cases an RtfContainer must be replaced by another one on the stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuilderContext(IRtfOptions rtfOptions)
rtfOptions
- some optionsMethod Detail |
---|
public RtfContainer getContainer(java.lang.Class containerClass, boolean required, java.lang.Object forWhichBuilder) throws RtfException
containerClass
- class of containerrequired
- if true, ConverterException is thrown if no container foundforWhichBuilder
- used in error message if container not found
RtfException
- if not caughtpublic void pushContainer(RtfContainer c)
c
- the containerpublic void replaceContainer(RtfContainer oldC, RtfContainer newC) throws java.lang.Exception
oldC
- old containernewC
- new container
java.lang.Exception
- if not caughtpublic void popContainer()
public TableContext getTableContext()
public void pushTableContext(TableContext tc)
tc
- the table contextpublic void popTableContext()
|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |