KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > detail > constants > AbstractConstantInfoDetailPane


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.detail.constants;
9
10 import org.gjt.jclasslib.browser.BrowserServices;
11 import org.gjt.jclasslib.browser.detail.FixedListDetailPane;
12
13 import javax.swing.tree.TreePath JavaDoc;
14
15 /**
16     Base class for all constant pool entry detail panes.
17  
18     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
19     @version $Revision: 1.5 $ $Date: 2003/08/18 08:16:21 $
20 */

21 public abstract class AbstractConstantInfoDetailPane extends FixedListDetailPane {
22
23     /** Message which is diplayed if the constant pool entry is invalid. */
24     protected static final String JavaDoc MESSAGE_INVALID_CONSTANT_POOL_ENTRY = "invalid constant pool entry";
25
26     /**
27         Constructor.
28         @param services the associated browser services.
29      */

30     protected AbstractConstantInfoDetailPane(BrowserServices services) {
31         super(services);
32     }
33     
34     /**
35         Get the constant pool index corrensponding to a selection in
36         <tt>BrowserTreePane</tt>.
37         @param treePath the tree path
38         @return the index
39      */

40     protected int constantPoolIndex(TreePath JavaDoc treePath) {
41         return getIndex(treePath);
42     }
43     
44 }
45
46
47
Popular Tags