diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-12-22 17:20:51 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-12-22 17:20:51 +0000 |
commit | 37b744039a701d5aafd44997a195c696261d3fea (patch) | |
tree | 504f0326b76734cf106ece1b67cf2fca8fd48ac3 /src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java | |
parent | a0f281543e947da203e9cfd5cb3559e32912beb4 (diff) | |
download | xmlgraphics-fop-37b744039a701d5aafd44997a195c696261d3fea.tar.gz xmlgraphics-fop-37b744039a701d5aafd44997a195c696261d3fea.zip |
Bugzilla #48071: made the MinOptMax class immutable. Also, lots of clean ups and minor refactorings.
Patch submitted by Alexander Kiel.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@893238 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java index e6a5bea5e..1f91cef1a 100644 --- a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java @@ -48,7 +48,7 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager private static Log log = LogFactory.getLog(AbstractLayoutManager.class); /** Parent LayoutManager for this LayoutManager */ - protected LayoutManager parentLM; + protected LayoutManager parentLayoutManager; /** List of child LayoutManagers */ protected List childLMs; /** Iterator for child LayoutManagers */ @@ -91,12 +91,12 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager /** {@inheritDoc} */ public void setParent(LayoutManager lm) { - this.parentLM = lm; + this.parentLayoutManager = lm; } /** {@inheritDoc} */ public LayoutManager getParent() { - return this.parentLM; + return this.parentLayoutManager; } /** {@inheritDoc} */ @@ -230,7 +230,7 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager /** {@inheritDoc} */ public PageSequenceLayoutManager getPSLM() { - return parentLM.getPSLM(); + return parentLayoutManager.getPSLM(); } /** @@ -442,7 +442,7 @@ public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager * LM is a descendant of the FlowLM. For static-content * the FO may still be needed on following pages. */ - LayoutManager lm = this.parentLM; + LayoutManager lm = this.parentLayoutManager; while (!(lm instanceof FlowLayoutManager || lm instanceof PageSequenceLayoutManager)) { lm = lm.getParent(); |