KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > layout > impl > DefaultLayoutDescription


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.layout.impl;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.Iterator JavaDoc;
20 import java.util.List JavaDoc;
21
22 import org.apache.cocoon.portal.factory.impl.AbstractProducibleDescription;
23 import org.apache.cocoon.portal.layout.LayoutDescription;
24
25
26 /**
27  * A configured layout
28  *
29  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
30  *
31  * @version CVS $Id: DefaultLayoutDescription.java 55961 2004-10-29 10:09:02Z cziegeler $
32  */

33 public class DefaultLayoutDescription
34     extends AbstractProducibleDescription
35     implements LayoutDescription {
36
37     protected String JavaDoc defaultRendererName;
38     
39     protected List JavaDoc rendererNames = new ArrayList JavaDoc(2);
40     
41     protected String JavaDoc itemClassName;
42     
43     public String JavaDoc getDefaultRendererName() {
44         return defaultRendererName;
45     }
46
47     /**
48      * @param string
49      */

50     public void setDefaultRendererName(String JavaDoc string) {
51         defaultRendererName = string;
52     }
53
54     /**
55      * @return the names of all allowed renderers
56      */

57     public Iterator JavaDoc getRendererNames() {
58         return this.rendererNames.iterator();
59     }
60
61     public void addRendererName(String JavaDoc name) {
62         this.rendererNames.add( name );
63     }
64     
65     /**
66      * @return Returns the itemClassName.
67      */

68     public String JavaDoc getItemClassName() {
69         return this.itemClassName;
70     }
71     /**
72      * @param itemClassName The itemClassName to set.
73      */

74     public void setItemClassName(String JavaDoc itemClassName) {
75         this.itemClassName = itemClassName;
76     }
77 }
78
Popular Tags