Simon, 

Will you please comment this method--the purpose of
checkLength is not obvious in meaning at least to me.

Thanks,
Glen

--- [EMAIL PROTECTED] 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;
>       }
>   

Reply via email to