aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-05-22 03:59:53 +0000
committerGlen Mazza <gmazza@apache.org>2004-05-22 03:59:53 +0000
commit579ea70d54fbd5a82bc0afe59686c57dae37bc6c (patch)
tree0262b9f859a1f9be3882a4e75b4e9ef34c1badf5 /examples
parentd21b5c915da980fc3273ddc7ea821c1c1c73ea62 (diff)
downloadxmlgraphics-fop-579ea70d54fbd5a82bc0afe59686c57dae37bc6c.tar.gz
xmlgraphics-fop-579ea70d54fbd5a82bc0afe59686c57dae37bc6c.zip
Switched from handleAttrs() to more intuitive processNode() and (for FO namespace) addProperties() methods.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197613 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples')
-rw-r--r--examples/mathml/src/org/apache/fop/mathml/MathMLElement.java7
-rw-r--r--examples/plan/src/org/apache/fop/plan/PlanElement.java7
2 files changed, 8 insertions, 6 deletions
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
index 29ef8a2ea..aa9ed297b 100644
--- a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
+++ b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
@@ -56,10 +56,11 @@ public class MathMLElement extends MathMLObj {
}
/**
- * @see org.apache.fop.fo.FONode#handleAttrs(Attributes)
+ * @see org.apache.fop.fo.FONode#processNode
*/
- public void handleAttrs(Attributes attlist) throws FOPException {
- super.handleAttrs(attlist);
+ public void processNode(String elementName, Locator locator,
+ Attributes attlist) throws FOPException {
+ super.processNode(elementName, locator, attlist);
createBasicDocument();
}
diff --git a/examples/plan/src/org/apache/fop/plan/PlanElement.java b/examples/plan/src/org/apache/fop/plan/PlanElement.java
index 8a6956d6d..071647611 100644
--- a/examples/plan/src/org/apache/fop/plan/PlanElement.java
+++ b/examples/plan/src/org/apache/fop/plan/PlanElement.java
@@ -44,10 +44,11 @@ public class PlanElement extends PlanObj {
}
/**
- * @see org.apache.fop.fo.FONode#handleAttrs(Attributes)
+ * @see org.apache.fop.fo.FONode#processNode
*/
- public void handleAttrs(Attributes attlist) throws FOPException {
- super.handleAttrs(attlist);
+ public void processNode(String elementName, Locator locator,
+ Attributes attlist) throws FOPException {
+ super.processNode(elementName, locator, attlist);
createBasicDocument();
}