|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gjt.jclasslib.browser.AbstractDetailPane
Base class for all detail panes showing specific information for a specific tree node selected in BrowserTreePane.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected static Color |
COLOR_HIGHLIGHT
Color for highlighted text (values in key-value pairs). |
static Color |
COLOR_LINK
Color for hyperlinks. |
static String |
CPINFO_LINK_TEXT
Text prepended to constant pool hyperlinks. |
protected BrowserServices |
services
Services for this detail pane. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
AbstractDetailPane(BrowserServices services)
Constructs a detail pane with a specified parent frame. |
Method Summary | |
protected void |
constantPoolHyperlink(ExtendedJLabel value,
ExtendedJLabel comment,
int constantPoolIndex)
Construct a hyperlink into the constant pool. |
protected AttributeInfo |
findAttribute(TreePath path)
Find the attribute pertaining to a specific tree path. |
BrowserServices |
getBrowserServices()
Get the associated BrowserServices object. |
protected String |
getConstantPoolEntryName(int constantPoolIndex)
Get the name of a constant pool entry. |
protected int |
getIndex(TreePath treePath)
Determine the index of the tree node selected in BrowserTreePane among its siblings. |
protected ExtendedJLabel |
highlightLabel()
Create a highlighted label (values in key-value pairs). |
protected ExtendedJLabel |
linkLabel()
Create a label with the appearance of a hyperlink. |
protected ExtendedJLabel |
normalLabel()
Create a normal label (keys in key-value pairs). |
protected ExtendedJLabel |
normalLabel(String text)
Create a normal label (keys in key-value pairs). |
protected abstract void |
setupComponent()
Setup the detail pane at the beginning of its life cycle. |
abstract void |
show(TreePath treePath)
Show the detail pane for a specific tree node selected in BrowserTreePane. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String CPINFO_LINK_TEXT
public static final Color COLOR_LINK
protected static final Color COLOR_HIGHLIGHT
protected BrowserServices services
Constructor Detail |
protected AbstractDetailPane(BrowserServices services)
services
- browser servicesMethod Detail |
public BrowserServices getBrowserServices()
public abstract void show(TreePath treePath)
treePath
- the TreePath for the selection
in BrowserTreePaneprotected abstract void setupComponent()
protected ExtendedJLabel normalLabel()
protected ExtendedJLabel normalLabel(String text)
text
- the text for the label
protected ExtendedJLabel highlightLabel()
protected ExtendedJLabel linkLabel()
protected int getIndex(TreePath treePath)
treePath
- the tree path
protected AttributeInfo findAttribute(TreePath path)
path
- the tree path
protected String getConstantPoolEntryName(int constantPoolIndex)
constantPoolIndex
- the index of the constant pool entry
protected void constantPoolHyperlink(ExtendedJLabel value, ExtendedJLabel comment, int constantPoolIndex)
value
- the label for the hyperlink sourcecomment
- an oprional label whose text is automatically set to
the name of the constant pool entryconstantPoolIndex
- the index of the constant pool entry for the
target of the hyperlink
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |