01: /*
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: PortletComponentEvent.java 6385 2007-10-25 14:02:26Z wehrens $
04: */
05: package org.gridsphere.layout.event;
06:
07: import org.gridsphere.layout.PortletComponent;
08:
09: import javax.portlet.PortletRequest;
10:
11: /**
12: * A <code>PortletComponentEvent</code> is a general portlet render event
13: */
14: public interface PortletComponentEvent {
15:
16: /**
17: * Returns the portlet title bar event action
18: *
19: * @return the portlet title bar event action
20: */
21: public ComponentAction getAction();
22:
23: /**
24: * Returns true if this event actually triggered an action
25: *
26: * @return true if this event actually triggered an action
27: */
28: public boolean hasAction();
29:
30: /**
31: * Returns the PortletComponent that was selected
32: *
33: * @return the PortletComponent that was selcted
34: */
35: public PortletComponent getPortletComponent();
36:
37: /**
38: * Returns the component id of the portlet component
39: *
40: * @return the component id of the portlet component
41: */
42: public int getID();
43:
44: }
|