01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.portal.coplets.basket.events;
18:
19: import org.apache.cocoon.portal.coplets.basket.ContentStore;
20: import org.apache.cocoon.portal.layout.Layout;
21:
22: /**
23: * Show one item of a content store
24: *
25: * @version CVS $Id: ShowItemEvent.java 30941 2004-07-29 19:56:58Z vgritsenko $
26: */
27: public class ShowItemEvent extends ContentStoreEvent {
28:
29: /** The item to show */
30: protected final Object item;
31:
32: /** The layout object to use */
33: protected final Layout layout;
34:
35: /** The id of the coplet data used to display the content */
36: protected final String copletData;
37:
38: /**
39: * Constructor
40: * @param store The content store
41: * @param item The item to show
42: * @param layout The layout object where the item is displayed
43: * @param copletData The coplet data id of a content coplet
44: */
45: public ShowItemEvent(ContentStore store, Object item,
46: Layout layout, String copletData) {
47: super (store);
48: this .item = item;
49: this .layout = layout;
50: this .copletData = copletData;
51: }
52:
53: /**
54: * Return item
55: */
56: public Object getItem() {
57: return this .item;
58: }
59:
60: /**
61: * Return the layout
62: */
63: public Layout getLayout() {
64: return this .layout;
65: }
66:
67: /**
68: * Return the coplet data id
69: */
70: public String getCopletDataId() {
71: return this.copletData;
72: }
73: }
|