[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-dev
Subject: Re: cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr LayoutManagerMaker.java LayoutManagerMappi
From: Glen Mazza <grm7793 () yahoo ! com>
Date: 2004-12-25 0:17:20
Message-ID: 20041225001720.10830.qmail () web80513 ! mail ! yahoo ! com
[Download RAW message or body]
Simon,
Will you please comment this method--the purpose of
checkLength is not obvious in meaning at least to me.
Thanks,
Glen
--- spepping@apache.org wrote:
> public LayoutManager makeLayoutManager(FONode
> node, boolean checkLength) {
> List lms = new ArrayList();
> makeLayoutManagers(node, lms);
> LayoutManager lm = null;
> if (checkLength && lms.size() != 1) {
> log.error("More than 1 LayoutManager
> for class "
> + node.getClass()
> + "; 1 was requested");
> } else if (lms.size() != 0) {
> lm = (LayoutManager) lms.get(0);
> }
> return lm;
> }
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic