public interface ITree
JTree
which allows clicking (selecting/deselecting) rows on the full row length (not just within the row bounds which is the renderer's
preferred size).
Sets TreeSelectionModel.SINGLE_TREE_SELECTION
, and only work properly with this selection model (modifier keys like SHIFT and CTRL are not handled
properly for other selection modes).
Overrides tool tip creation and placement to return the node text value as tool tip if it's truncated (due to not fitting into the view). Positions tool tips exactly over the nodes' text.
IGuiFactory.newTree(javax.swing.tree.TreeNode)
Modifier and Type | Method and Description |
---|---|
javax.swing.JTree |
asTree()
Casts this instance to
JTree . |
void |
collapsePathRecursive(javax.swing.tree.TreePath path)
Recursively collapses the specified path.
|
void |
expandPathRecursive(javax.swing.tree.TreePath path)
Recursively expands the specified path.
|
void |
expandPathRecursive(javax.swing.tree.TreePath path,
int maxDepth)
Recursively expands the specified path.
|
javax.swing.JTree asTree()
JTree
.this
as a JTree
void expandPathRecursive(javax.swing.tree.TreePath path)
path
- path to be expanded recursivelyvoid expandPathRecursive(javax.swing.tree.TreePath path, int maxDepth)
path
- path to be expanded recursivelymaxDepth
- specifies the max depth to expand (0=only the specified path); you can pass Integer.MAX_VALUE
for unlimited depthvoid collapsePathRecursive(javax.swing.tree.TreePath path)
path
- path to be collapsed recursively
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.