1 7 8 package org.gjt.jclasslib.browser.detail; 9 10 import org.gjt.jclasslib.browser.BrowserServices; 11 import org.gjt.jclasslib.util.ExtendedJLabel; 12 13 import javax.swing.tree.TreePath ; 14 15 21 public class InterfaceDetailPane extends FixedListDetailPane { 22 23 25 private ExtendedJLabel lblInterface; 26 private ExtendedJLabel lblInterfaceVerbose; 27 28 32 public InterfaceDetailPane(BrowserServices services) { 33 super(services); 34 } 35 36 protected void setupLabels() { 37 38 addDetailPaneEntry(normalLabel("Interface:"), 39 lblInterface = linkLabel(), 40 lblInterfaceVerbose = highlightLabel()); 41 42 } 43 44 public void show(TreePath treePath) { 45 46 int constantPoolIndex = services.getClassFile().getInterfaces()[getIndex(treePath)]; 47 48 constantPoolHyperlink(lblInterface, 49 lblInterfaceVerbose, 50 constantPoolIndex); 51 52 super.show(treePath); 53 54 } 55 56 } 57 58 | Popular Tags |