/**
* @param child child node to be added to the children of this node
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
}
/**
rootFObj = (Root) foNode;
rootFObj.setFOInputHandler(foInputHandler);
} else {
- currentFObj.addChild(foNode);
+ currentFObj.addChildNode(foNode);
}
currentFObj = foNode;
}
/**
- * Add the child to this object.
- *
- * @param child the child node to add
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
if (containsMarkers() && "fo:marker".equals(child.getName())) {
addMarker((Marker)child);
} else {
/* characters() processing empty for FOTreeHandler, not empty for RTF & MIFHandlers */
getFOInputHandler().characters(ft.ca, ft.startIndex, ft.endIndex);
- addChild(ft);
+ addChildNode(ft);
}
private void setup() {
}
/**
- * @see XMLObj#addChild
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
if (doc == null) {
createBasicDocument();
}
- super.addChild(child);
+ super.addChildNode(child);
}
/**
}
/**
- * @param child FONode child that should be added to this node
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
if (child instanceof XMLObj) {
((XMLObj)child).addElement(doc, element);
} else {
}
/**
- * Add the child to the top level.
- * This handles all Outline objects added and ignores others.
- *
- * @param obj the child to add
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode obj) {
+ protected void addChildNode(FONode obj) {
if (obj instanceof Outline) {
outlines.add(obj);
}
}
/**
- * Add the child to this outline.
- * This checks for the type, label or outline and handles appropriately.
- *
- * @param obj the child object
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode obj) {
+ protected void addChildNode(FONode obj) {
if (obj instanceof Label) {
label = (Label)obj;
} else if (obj instanceof Outline) {
}
/**
- * @see org.apache.fop.fo.FObj#addChild
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- public void addChild(FONode child) {
+ public void addChildNode(FONode child) {
// Handle whitespace based on values of properties
// Handle a sequence of inline-producing children in
// one pass
// Handle whitespace in preceeding inline areas if any
handleWhiteSpace();
}
- super.addChild(child);
+ super.addChildNode(child);
}
/**
}
/**
- * @param child child FONode to be added to this object
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- public void addChild(FONode child) {
+ public void addChildNode(FONode child) {
String name = child.getName();
if ("fo:inline".equals(name)) {
inlineFO = (Inline)child;
}
/**
- * Overridden from FObj
- * @param child the child object to be added
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- public void addChild(FONode child) {
+ public void addChildNode(FONode child) {
if ("fo:list-item-label".equals(child.getName())) {
label = (ListItemLabel)child;
} else if ("fo:list-item-body".equals(child.getName())) {
}
/**
- * Overrides FObj.
- * @param child FONode child object to be added
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
if (child.getName().equals("fo:table-column")) {
if (columns == null) {
columns = new ArrayList();
tableHeader = (TableBody)child;
} else {
// add bodies
- super.addChild(child);
+ super.addChildNode(child);
}
}
}
/**
- * Validate the child being added and initialize internal variables.
- * XSL content model for page-sequence:
- * <pre>(title?,static-content*,flow)</pre>
- *
- * @param child The flow object child to be added to the PageSequence.
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- public void addChild(FONode child) {
+ public void addChildNode(FONode child) {
try {
String childName = child.getName();
if (childName.equals("fo:title")) {
// Don't add main flow to the flow map
// addFlow(mainFlow);
startStructuredPageSequence();
- super.addChild(child); // For getChildren
+ super.addChildNode(child); // For getChildren
} else if (childName.equals("fo:static-content")) {
String flowName = ((StaticContent)child).getFlowName();
if (flowMap.containsKey(flowName)) {
startStructuredPageSequence();
}
} catch (FOPException fopex) {
- getLogger().error("Error in PageSequence.addChild(): "
+ getLogger().error("Error in PageSequence.addChildNode(): "
+ fopex.getMessage(), fopex);
}
}
}
/**
- * @see org.apache.fop.fo.FONode#addChild(FONode)
+ * @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
- protected void addChild(FONode child) {
+ protected void addChildNode(FONode child) {
if (child instanceof Region) {
addRegion((Region)child);
} else {