KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > coplets > basket > events > ShowItemEvent


1 /*
2  * Copyright 2004-2005 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.coplets.basket.events;
17
18 import org.apache.cocoon.portal.coplets.basket.ContentStore;
19 import org.apache.cocoon.portal.layout.Layout;
20
21 /**
22  * Show one item of a content store
23  *
24  * @version CVS $Id: ShowItemEvent.java 30941 2004-07-29 19:56:58Z vgritsenko $
25  */

26 public class ShowItemEvent extends ContentStoreEvent {
27     
28     /** The item to show */
29     protected final Object JavaDoc item;
30     
31     /** The layout object to use */
32     protected final Layout layout;
33     
34     /** The id of the coplet data used to display the content */
35     protected final String JavaDoc copletData;
36     
37     /**
38      * Constructor
39      * @param store The content store
40      * @param item The item to show
41      * @param layout The layout object where the item is displayed
42      * @param copletData The coplet data id of a content coplet
43      */

44     public ShowItemEvent(ContentStore store, Object JavaDoc item, Layout layout, String JavaDoc copletData) {
45         super(store);
46         this.item = item;
47         this.layout = layout;
48         this.copletData = copletData;
49     }
50     
51     /**
52      * Return item
53      */

54     public Object JavaDoc getItem() {
55         return this.item;
56     }
57     
58     /**
59      * Return the layout
60      */

61     public Layout getLayout() {
62         return this.layout;
63     }
64     
65     /**
66      * Return the coplet data id
67      */

68     public String JavaDoc getCopletDataId() {
69         return this.copletData;
70     }
71 }
72
Popular Tags