public class XMLWhiteSpaceHandler
extends java.lang.Object
handleWhiteSpace()
methods are called during
FOTree-building and marker-cloning:
FObjMixed.addChildNode()
FObjMixed.endOfNode()
FObjMixed.handleWhiteSpaceFor()
FOText
or Character
nodes that
were added:
newChild
(and after the previous
non-text child node)newChild
is null
,
after the previous non-text childfirstTextNode
,
goes on until the last text-node is reached, and deals only
with FOText
or Character
nodes.
Constructor and Description |
---|
XMLWhiteSpaceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleWhiteSpace(FObjMixed fo,
FONode firstTextNode)
Handle white-space for the fo that is passed in, starting at
firstTextNode (when a nested FO is encountered)
|
void |
handleWhiteSpace(FObjMixed fo,
FONode firstTextNode,
FONode nextChild)
Handle white-space for the fo that is passed in, starting at
firstTextNode
|
protected void |
reset()
Reset the handler, release all references
|
public void handleWhiteSpace(FObjMixed fo, FONode firstTextNode, FONode nextChild)
fo
- the FO for which to handle white-spacefirstTextNode
- the node at which to startnextChild
- the node that will be added to the list
after firstTextNodeprotected final void reset()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.