KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > barracuda > core > event > ViewEvent


1 /*
2  * Copyright (C) 2003 Christian Cryder [christianc@granitepeaks.com]
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * $Id: ViewEvent.java,v 1.6 2004/02/01 05:16:28 christianc Exp $
19  */

20 package org.enhydra.barracuda.core.event;
21
22 import java.io.*;
23 import java.util.*;
24
25 /**
26  * This defines a basic View event, indicating some kind of
27  * response/view must be generated. By default, ViewEvents implement
28  * Exceptional and therefore must be handled. The world is made up of
29  * ViewEvents and eveything else.
30  *
31  * Eventually, there may be several kinds of View events,
32  * but right now, HttpResponseEvent is the only kind that
33  * extends it.
34  */

35 public class ViewEvent extends DefaultBaseEvent {
36     /**
37      * Default noargs constructor
38      */

39     public ViewEvent() {super();}
40
41     /**
42      * Public constructor. Automatically sets parameters associated
43      * with the event with a URL string of the form "key1=val1&key2=val2&..."
44      * (the param str may be prefixed by a '?')
45      */

46     public ViewEvent(String JavaDoc urlParamStr) {
47         super(urlParamStr);
48     }
49
50     /**
51      * Public constructor. Automatically sets the source parameter.
52      * If you do not use this method you should manually set the
53      * source before dispatching the event.
54      */

55     public ViewEvent(Object JavaDoc source) {
56         super(source);
57     }
58 }
59
Popular Tags