KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > controller > events > EventSupport


1 /**
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6
7        http://www.apache.org/licenses/LICENSE-2.0
8
9   * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */

15
16 package com.jdon.controller.events;
17
18 import javax.servlet.http.HttpSession JavaDoc;
19
20 /**
21  *
22  * <p>Title: </p>
23  * <p>Description:
24  * 带有web层的Action name å’Œaction type
25  *
26  * </p>
27  * @author banq
28  */

29
30 public class EventSupport implements Event {
31
32   protected String JavaDoc actionName = null;
33   protected int actionType;
34   protected String JavaDoc errors = null;
35   private HttpSession JavaDoc session = null;
36
37   public void setActionName(String JavaDoc actionName) {
38     this.actionName = actionName;
39   }
40
41   public String JavaDoc getActionName() {
42     return actionName;
43   }
44
45   public void setActionType(int actionType) {
46     this.actionType = actionType;
47   }
48
49   public int getActionType() {
50     return this.actionType;
51   }
52
53   public void setErrors(String JavaDoc errors) {
54     if (this.errors == null) //å?ªè®°å½•ç¬¬ä¸€ä¸ªé”™è¯¯
55
this.errors = errors;
56   }
57
58   public String JavaDoc getErrors() {
59     return this.errors;
60   }
61
62   public void setSession(HttpSession JavaDoc session) {
63     this.session = session;
64   }
65
66   public HttpSession JavaDoc getSession() {
67     return session;
68   }
69
70   public String JavaDoc getEventName() {
71     return "";
72   }
73
74 }
75
Popular Tags