aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/BlockContainer.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2003-12-27 22:00:38 +0000
committerGlen Mazza <gmazza@apache.org>2003-12-27 22:00:38 +0000
commit75c5a4c1cdb5eea469d82660a31d7fdb90a4333d (patch)
tree321aa7918afc71707d481ba1bebbd499c97eff20 /src/java/org/apache/fop/fo/flow/BlockContainer.java
parent3218d18b86a969583ac9ba7aaf830b90d62e6e3b (diff)
downloadxmlgraphics-fop-75c5a4c1cdb5eea469d82660a31d7fdb90a4333d.tar.gz
xmlgraphics-fop-75c5a4c1cdb5eea469d82660a31d7fdb90a4333d.zip
*Partial* conversion of PropertyList.get(String propName) to new PropertyList.get(int propId) method. This method will remain
overloaded until all calls converted to int constants. Work based on Finn Bock's patch. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/BlockContainer.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/BlockContainer.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/fo/flow/BlockContainer.java b/src/java/org/apache/fop/fo/flow/BlockContainer.java
index 77ab61871..48ed69b70 100644
--- a/src/java/org/apache/fop/fo/flow/BlockContainer.java
+++ b/src/java/org/apache/fop/fo/flow/BlockContainer.java
@@ -93,7 +93,7 @@ public class BlockContainer extends FObj {
*/
public void handleAttrs(Attributes attlist) throws FOPException {
super.handleAttrs(attlist);
- this.span = this.propertyList.get("span").getEnum();
+ this.span = this.propertyList.get(PR_SPAN).getEnum();
setupID();
}
@@ -126,11 +126,11 @@ public class BlockContainer extends FObj {
// this.propertyList.get("writing-mode");
this.backgroundColor =
- this.propertyList.get("background-color").getColorType();
+ this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
- this.width = this.propertyList.get("width").getLength().getValue();
- this.height = this.propertyList.get("height").getLength().getValue();
- span = this.propertyList.get("span").getEnum();
+ this.width = this.propertyList.get(PR_WIDTH).getLength().getValue();
+ this.height = this.propertyList.get(PR_HEIGHT).getLength().getValue();
+ span = this.propertyList.get(PR_SPAN).getEnum();
}