KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.swing.tree.DefaultTreeModel JavaDoc;
11
12 /**
13     A logical component of the classpath.
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 interface ClasspathComponent {
19
20     /**
21      * Find a class by name within thsi classpath component.
22      * @param className the name of the class
23      * @return the <tt>FindResult</tt> object. <tt>null</tt> if no class could be found.
24      */

25     public FindResult findClass(String JavaDoc className);
26
27     /**
28      * Merge all classes in this classpath component into the supplied tree.
29      * @param model the tree model.
30      * @param reset whether this is an incremental operation or part of a reset.
31      * For a reset, no change events will be fired on the tree model.
32      */

33     public void mergeClassesIntoTree(DefaultTreeModel JavaDoc model, boolean reset);
34
35     /**
36      * Add a <tt>ClasspathChangeListener</tt>.
37      * @param listener the listener
38      */

39     public void addClasspathChangeListener(ClasspathChangeListener listener);
40
41     /**
42      * Remove a <tt>ClasspathChangeListener</tt>.
43      * @param listener the listener
44      */

45     public void removeClasspathChangeListener(ClasspathChangeListener listener);
46 }
47
Popular Tags