KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 1999-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 org.apache.cocoon.portal.layout.AbstractLayout;
19
20 /**
21  * A frame layout holds a source URI. The URI can be changed dynamically through
22  * events. The URI may contain any URI that can be resolved by the Cocoon
23  * {@link org.apache.cocoon.environment.SourceResolver}.
24  *
25  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
26  * @author <a HREF="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
27  *
28  * @version CVS $Id: FrameLayout.java 37334 2004-09-01 11:29:10Z cziegeler $
29  */

30 public class FrameLayout extends AbstractLayout {
31     
32     private String JavaDoc source;
33     
34     /**
35      * @return String
36      */

37     public String JavaDoc getSource() {
38         return source;
39     }
40
41     /**
42      * Sets the source.
43      * @param source The source to set
44      */

45     public void setSource(String JavaDoc source) {
46         this.source = source;
47     }
48
49     /* (non-Javadoc)
50      * @see java.lang.Object#clone()
51      */

52     protected Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
53         FrameLayout clone = (FrameLayout)super.clone();
54         
55         clone.source = this.source;
56         
57         return clone;
58     }
59     
60 }
61
Popular Tags