KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > plugin > ActionEvent


1 /*
2  * ActionEvent.java
3  *
4  * Created on March 8, 2002, 1:48 AM
5  */

6
7 package com.quikj.application.web.talk.plugin;
8
9 import java.util.*;
10 import com.quikj.server.framework.*;
11
12 /**
13  *
14  * @author amit
15  */

16 public class ActionEvent implements AceMessageInterface
17 {
18     
19     /** Creates a new instance of ActionEvent */
20     protected ActionEvent (Object JavaDoc user_parm)
21     {
22         userParm = user_parm;
23     }
24     
25     public String JavaDoc messageType()
26     {
27         return "ApplicationTalkActionEvent";
28     }
29     
30     public int actionListSize()
31     {
32         return actionList.size();
33     }
34     
35     public EndPointActionInterface[] getActionList()
36     {
37         int size = actionList.size();
38         EndPointActionInterface[] array = new EndPointActionInterface[size];
39         for (int i = 0; i < array.length; i++)
40         {
41             array[i] = (EndPointActionInterface)actionList.get(i);
42         }
43         
44         return array;
45 // return (EndPointActionInterface[])actionList.toArray();
46
}
47     
48     public void addAction (EndPointActionInterface action)
49     {
50         actionList.add (action);
51     }
52     
53     public Object JavaDoc getUserParm()
54     {
55         return userParm;
56     }
57     
58     private ArrayList actionList = new ArrayList();
59     private Object JavaDoc userParm;
60 }
61
Popular Tags