|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.swing.components.tree.TreeExpander
public class TreeExpander
Expander that automatically expands a tree control so that the available drawing area of the tree is filled to the maximum extend without the need of displaying a scrollbar.
| Nested Class Summary | |
|---|---|
static class |
TreeExpander.TreeRow
Wrapper for nodes that can be expanded. |
| Constructor Summary | |
|---|---|
TreeExpander(javax.swing.JTree tree)
Contructor. |
|
| Method Summary | |
|---|---|
void |
expandLevel(int level)
Expand all nodes till a level. |
void |
intelliExpand(int level)
Expand the tree in a way that no scroll bar is needed. |
void |
simpleExpand(int level)
Expand the levels of a tree only if the children of the level can be displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeExpander(javax.swing.JTree tree)
tree - The tree to expand| Method Detail |
|---|
public void simpleExpand(int level)
level - The level of the expansionpublic void intelliExpand(int level)
level - The level of the expansion. Level 0 expands only
the children of the root node. Level 1 the children of the children of
the root.public void expandLevel(int level)
level - The level to expand to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||