|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.FONode
org.apache.fop.fo.FObj
org.apache.fop.fo.pagination.PageSequenceMaster
public class PageSequenceMaster
Class modelling the
fo:page-sequence-master
object.
This class handles a list of subsequence specifiers
which are simple or complex references to page-masters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.fo.FObj |
---|
FObj.FObjIterator |
Nested classes/interfaces inherited from class org.apache.fop.fo.FONode |
---|
FONode.FONodeIterator, FONode.GatherContextInfoFunction |
Field Summary |
---|
Fields inherited from class org.apache.fop.fo.FObj |
---|
firstChild, lastChild |
Fields inherited from class org.apache.fop.fo.FONode |
---|
FO_URI, FOX_URI, locator, log, parent, siblings |
Constructor Summary | |
---|---|
PageSequenceMaster(FONode parent,
BlockLevelEventProducer blockLevelEventProducer)
Create a PageSequenceMaster instance that is a child of the given FONode . |
Method Summary | |
---|---|
protected void |
addSubsequenceSpecifier(SubSequenceSpecifier pageMasterReference)
Adds a new suqsequence specifier to the page sequence master. |
void |
bind(PropertyList pList)
Bind property values from the property list to the FO node. |
void |
endOfNode()
Primarily used for making final content model validation checks and/or informing the FOEventHandler that the end of this FO
has been reached. |
SimplePageMaster |
getLastSimplePageMaster(boolean isOddPage,
boolean isFirstPage,
boolean isBlank,
java.lang.String flowName)
|
LayoutMasterSet |
getLayoutMasterSet()
|
java.lang.String |
getLocalName()
Returns the local name (i.e. |
int |
getNameId()
Returns the Constants class integer value of this node |
SimplePageMaster |
getNextSimplePageMaster(boolean isOddPage,
boolean isFirstPage,
boolean isLastPage,
boolean isBlankPage,
java.lang.String mainFlowName)
Returns the next simple-page-master. |
boolean |
goToPreviousSimplePageMaster()
Used to set the "cursor position" for the page masters to the previous item. |
boolean |
hasPagePositionLast()
|
boolean |
hasPagePositionOnly()
|
void |
reset()
Resets the subsequence specifiers subsystem. |
void |
startOfNode()
Called after processNode() is called. |
protected void |
validateChildNode(org.xml.sax.Locator loc,
java.lang.String nsURI,
java.lang.String localName)
Checks to make sure, during SAX processing of input document, that the incoming node is valid for this (parent) node (e.g., checking to see that fo:table is not an immediate child of fo:root )
called from FOTreeBuilder.startElement(String, String, String, Attributes)
before constructing the child FObj . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageSequenceMaster(FONode parent, BlockLevelEventProducer blockLevelEventProducer)
FONode
.
parent
- FONode
that is the parent of this objectblockLevelEventProducer
- event producerMethod Detail |
---|
public void bind(PropertyList pList) throws FOPException
bind
in class FObj
pList
- the PropertyList where the properties can be found.
FOPException
- if there is a problem binding the valuespublic void startOfNode() throws FOPException
startOfNode
in class FObj
FOPException
- FOP Exceptionpublic void endOfNode() throws FOPException
FOEventHandler
that the end of this FO
has been reached.
The default implementation simply calls FONode.finalizeNode()
, without
sending any event to the FOEventHandler
.
Note: the recommended way to override this method in subclasses is
super.endOfNode(); // invoke finalizeNode()
getFOEventHandler().endXXX(); // send endOfNode() notification
endOfNode
in class FONode
FOPException
- if there's a problem during processingprotected void validateChildNode(org.xml.sax.Locator loc, java.lang.String nsURI, java.lang.String localName) throws ValidationException
fo:table
is not an immediate child of fo:root
)
called from FOTreeBuilder.startElement(String, String, String, Attributes)
before constructing the child FObj
.
validateChildNode
in class FONode
loc
- location in the FO source filensURI
- namespace of incoming nodelocalName
- name of the incoming node (without namespace prefix)
ValidationException
- if incoming node not valid for parentprotected void addSubsequenceSpecifier(SubSequenceSpecifier pageMasterReference)
pageMasterReference
- the subsequence to addpublic LayoutMasterSet getLayoutMasterSet()
public void reset()
public boolean goToPreviousSimplePageMaster()
public boolean hasPagePositionLast()
public boolean hasPagePositionOnly()
public SimplePageMaster getNextSimplePageMaster(boolean isOddPage, boolean isFirstPage, boolean isLastPage, boolean isBlankPage, java.lang.String mainFlowName) throws PageProductionException
isOddPage
- True if the next page number is oddisFirstPage
- True if the next page is the firstisLastPage
- True if the next page is the lastisBlankPage
- True if the next page is blankmainFlowName
- the name of the main flow of the page sequence
PageProductionException
- if there's a problem determining the next page masterpublic java.lang.String getLocalName()
getLocalName
in class FONode
public int getNameId()
Constants
class integer value of this node
getNameId
in class FONode
Constants.FO_PAGE_SEQUENCE_MASTER
public SimplePageMaster getLastSimplePageMaster(boolean isOddPage, boolean isFirstPage, boolean isBlank, java.lang.String flowName)
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |