KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > BrowserServices


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;
9
10 import org.gjt.jclasslib.browser.config.window.BrowserPath;
11 import org.gjt.jclasslib.structures.ClassFile;
12
13 import javax.swing.*;
14
15 /**
16     Container services for a <tt>BrowserComponent</tt>.
17  
18     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
19     @version $Revision: 1.5 $ $Date: 2004/02/10 16:06:56 $
20 */

21 public interface BrowserServices {
22     /**
23         Get the <tt>ClassFile</tt> object for the show class file.
24         @return the <tt>ClassFile</tt> object
25      */

26     ClassFile getClassFile();
27
28     /**
29         Activate this view.
30      */

31     void activate();
32     
33     /**
34         Get the <tt>BrowserComponent</tt> which is the top parent of
35         the visual hierarchy of the class file browser.
36         @return the <tt>BrowserComponent</tt>
37      */

38     BrowserComponent getBrowserComponent();
39     
40     /**
41         Get the <tt>Action</tt> which allows to move
42         backward in the navigation history.
43         @return the <tt>Action</tt>
44      */

45     Action getActionBackward();
46
47     /**
48         Get the <tt>Action</tt> which allows to move
49         forward in the navigation history.
50         @return the <tt>Action</tt>
51      */

52     Action getActionForward();
53
54     /**
55         Open a class.
56         @param className the name of the class.
57         @param browserPath an optional <tt>BrowserPath</tt> object. May be <tt>null</tt>.
58      */

59     void openClassFile(String JavaDoc className, BrowserPath browserPath);
60
61     /**
62         Indicates whether <tt>openClassFile</tt> will be able to show class files or not.
63         @return the value
64      */

65     boolean canOpenClassFiles();
66 }
67
68
Popular Tags