1 7 package org.gjt.jclasslib.browser.detail.elementvalues; 8 9 import org.gjt.jclasslib.browser.BrowserServices; 10 import org.gjt.jclasslib.browser.BrowserTreeNode; 11 import org.gjt.jclasslib.browser.detail.FixedListDetailPane; 12 import org.gjt.jclasslib.structures.elementvalues.ClassElementValue; 13 import org.gjt.jclasslib.util.ExtendedJLabel; 14 15 import javax.swing.tree.TreePath ; 16 17 23 public class ClassElementValueEntryDetailPane extends FixedListDetailPane { 24 25 private ExtendedJLabel lblClassInfoIndex; 26 private ExtendedJLabel lblClassInfoIndexVerbose; 27 28 public ClassElementValueEntryDetailPane(BrowserServices services) { 29 super(services); 30 } 31 32 protected void setupLabels() { 33 34 addDetailPaneEntry(normalLabel("Class info:"), 35 lblClassInfoIndex = linkLabel(), 36 lblClassInfoIndexVerbose = highlightLabel()); 37 } 38 39 public void show(TreePath treePath) { 40 ClassElementValue ceve = (ClassElementValue) 41 ((BrowserTreeNode)treePath.getLastPathComponent()).getElement(); 42 43 constantPoolHyperlink(lblClassInfoIndex, 44 lblClassInfoIndexVerbose, 45 ceve.getClassInfoIndex()); 46 47 super.show(treePath); 48 } 49 50 } 51 | Popular Tags |