|
|||||||||
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
uk.ac.starlink.ttools.gui.MethodBrowser
public class MethodBrowser
Component displaying the static public members of a set of classes.
This is currently arranged as a tree. If javadocs are available
(under names as described by DocNames
)
these are displayed alongside.
Currently, the items in the tree can be an instance of one of the following classes:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
MethodBrowser()
Constructor. |
Method Summary | |
---|---|
void |
addStaticClass(Class clazz,
DefaultMutableTreeNode parent)
Adds a new class to the tree containing available static methods. |
void |
addStaticClasses(Class[] clazzes)
Adds the static members of a set of classes to the tree root for display. |
DefaultMutableTreeNode |
getRoot()
Returns the root node of the tree. |
JTree |
getTree()
Returns the tree which displays the classes. |
DefaultTreeModel |
getTreeModel()
Returns the tree model which contains the classes for display. |
Icon |
iconFor(Object userObj)
Returns the icon to get used for representing a node in the tree. |
String |
textFor(Object userObj)
Returns the string to get used for representing a node in the tree. |
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 |
Constructor Detail |
---|
public MethodBrowser()
Method Detail |
---|
public JTree getTree()
public DefaultTreeModel getTreeModel()
public DefaultMutableTreeNode getRoot()
public void addStaticClasses(Class[] clazzes)
clazzes
- classes for displaypublic void addStaticClass(Class clazz, DefaultMutableTreeNode parent)
clazz
- class to addparent
- tree node to append it topublic String textFor(Object userObj)
userObj
- user object at node
public Icon iconFor(Object userObj)
userObj
- user object at node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |