KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > config > classpath > ClasspathChangeEvent


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.browser.config.classpath;
9
10 import java.util.EventObject JavaDoc;
11
12 /**
13     Change event for <tt>ClasspathChangeListener</tt>s.
14
15     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
16     @version $Revision: 1.1 $ $Date: 2003/08/18 08:10:15 $
17 */

18 public class ClasspathChangeEvent extends EventObject JavaDoc {
19
20     private boolean removal;
21
22     /**
23      * Constructor.
24      * @param source the source object
25      * @param removal if a classpath entry has been removed.
26      */

27     public ClasspathChangeEvent(Object JavaDoc source, boolean removal) {
28         super(source);
29         this.removal = removal;
30     }
31
32     /**
33      * Return whether a classpath entry has been removed.
34      * @return the value
35      */

36     public boolean isRemoval() {
37         return removal;
38     }
39 }
40
Popular Tags