|
||||||||||
| 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
ucar.unidata.ui.TreePanel
public class TreePanel
This class shows a tree on the left and a card panel on the right
| Nested Class Summary | |
|---|---|
static class |
TreePanel.MyTreeNode
Class MyTreeNode _more_ |
| 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 | |
|---|---|
static String |
CATEGORY_DELIMITER
_more_ |
| 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 | |
|---|---|
TreePanel()
ctor |
|
TreePanel(boolean useSplitPane,
int treeWidth)
_more_ |
|
| Method Summary | |
|---|---|
void |
addCategoryComponent(String cat,
JComponent comp)
_more_ |
void |
addComponent(JComponent component,
String category,
String label,
ImageIcon icon)
Add the component to the panel |
void |
addComponent(JComponent component,
String category,
String label,
ImageIcon icon,
Object object)
_more_ |
void |
closeAll()
Close all paths |
DefaultTreeCellRenderer |
doMakeTreeCellRenderer()
_more_ |
Component |
getVisibleComponent()
_more_ |
void |
openAll()
Open all paths |
void |
removeComponent(JComponent component)
_more_ |
void |
setIcon(Component comp,
ImageIcon icon)
_more_ |
void |
show(Component component)
_more_ |
void |
showPath(Component component)
Show the tree node that corresponds to the component |
void |
valueChanged(TreeSelectionEvent e)
Handle tree selection changed |
| 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 CATEGORY_DELIMITER
| Constructor Detail |
|---|
public TreePanel()
public TreePanel(boolean useSplitPane,
int treeWidth)
useSplitPane - _more_treeWidth - _more_| Method Detail |
|---|
public DefaultTreeCellRenderer doMakeTreeCellRenderer()
public Component getVisibleComponent()
public void valueChanged(TreeSelectionEvent e)
valueChanged in interface TreeSelectionListenere - event
public void setIcon(Component comp,
ImageIcon icon)
comp - _more_icon - _more_
public void addComponent(JComponent component,
String category,
String label,
ImageIcon icon)
component - componentcategory - tree category. May be null.label - Tree node labelicon - Node icon. May be null.
public void addComponent(JComponent component,
String category,
String label,
ImageIcon icon,
Object object)
component - _more_category - _more_label - _more_icon - _more_object - _more_
public void addCategoryComponent(String cat,
JComponent comp)
cat - _more_comp - _more_public void removeComponent(JComponent component)
component - _more_public void show(Component component)
component - _more_public void showPath(Component component)
component - comppublic void openAll()
public void closeAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||