KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > event > AbstractLayoutEvent


1 package fr.improve.struts.taglib.layout.event;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4
5 import fr.improve.struts.taglib.layout.LayoutTag;
6
7
8 /**
9  * This class defines the struts-layout event. It can be used to easier communication between layout tags.
10  *
11  * @author jnribette
12  */

13 public abstract class AbstractLayoutEvent {
14     /**
15      * The layout tag that created the event.
16      */

17     protected LayoutTag source;
18     
19     /**
20      * The event associated value.
21      */

22     protected Object JavaDoc value;
23         
24     protected AbstractLayoutEvent(LayoutTag in_source, Object JavaDoc in_value) {
25         source = in_source;
26         value = in_value;
27     }
28     public LayoutTag getSource() {
29         return source;
30     }
31     public Object JavaDoc getValue() {
32         return value;
33     }
34     /**
35      * Send the event.
36      * Depends of the event implementation.
37      */

38     public abstract Object JavaDoc send() throws JspException JavaDoc;
39 }
40
Popular Tags