01: /**
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: PortletWindowEventImpl.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.layout.event.impl;
05:
06: import org.gridsphere.layout.event.PortletWindowEvent;
07:
08: import javax.servlet.http.HttpServletRequest;
09: import java.util.EventObject;
10:
11: /**
12: * A <code>WindowEventImpl</code> is the <code>WindowEvent</code> implementation
13: * that is responsible for handling window action events e.g. <code>MINIMIZED</code>,
14: * <code>MAXIMIZED</code> or <code>RESTORED</code>.
15: */
16: public class PortletWindowEventImpl extends EventObject implements
17: PortletWindowEvent {
18:
19: private int event = -1;
20:
21: /**
22: * Constructs an instance of <code>WindowEventImpl</code> with a provided
23: * portlet request and response
24: *
25: * @param req the <code>PortletRequests</code>
26: * @param windowEvent the window event id
27: */
28: public PortletWindowEventImpl(HttpServletRequest req,
29: int windowEvent) {
30: super (req);
31: this .event = windowEvent;
32: }
33:
34: /**
35: * Returns the identifier of the current window event
36: *
37: * @return the window event identifier
38: */
39: public int getEventId() {
40: return event;
41: }
42:
43: }
|