KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > events > RoleChangedEvent


1 /**
2  *
3  * Coefficient - facilitates project based collaboration
4  * Copyright (C) 2003, Pieter van Zyl, CSIR icomtek
5  * PO Box 395
6  * Pretoria 0001, RSA
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */

21 package za.org.coefficient.events;
22
23
24
25 import za.org.coefficient.core.Project;
26 import za.org.coefficient.interfaces.CoefficientContext;
27
28 /**
29  * @author pieter20
30  * Apr 25, 2005
31  * This class provide information about Role changes for
32  * project members in a certain Project. It provides functionality for giving a description
33  * and providing the parent Project
34  */

35 public class RoleChangedEvent extends CoefficientEvent {
36     
37     private Project project;
38     
39     
40     /**
41      * @param description
42      * @param ctx
43      * Apr 25, 2005
44      * pieter20
45      */

46     public RoleChangedEvent(String JavaDoc description, Project proj) {
47         super(description);
48         setProject(proj);
49         System.out.println("RoleChangedEvent.con setting context: "+proj.toString());
50         
51     }
52
53     /**
54      * @return Returns the project.
55      * Apr 25, 2005
56      * pieter20
57      */

58     public Project getProject() {
59         return project;
60     }
61     
62
63     /**
64      * @param project The project to set.
65      * Apr 25, 2005
66      * pieter20
67      */

68     public void setProject(Project project) {
69         this.project = project;
70     }
71     
72     
73
74 }
75
Popular Tags