public class TreeState extends java.lang.Object implements JDOMExternalizable
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.ref.WeakReference<ActionCallback>> |
CALLBACK |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(javax.swing.JTree tree) |
void |
applyTo(javax.swing.JTree tree,
java.lang.Object root) |
static TreeState |
createFrom(Element element) |
static TreeState |
createOn(javax.swing.JTree tree) |
static TreeState |
createOn(javax.swing.JTree tree,
javax.swing.tree.DefaultMutableTreeNode treeNode) |
static TreeState |
createOn(javax.swing.JTree tree,
javax.swing.tree.TreePath rootPath) |
static void |
expand(javax.swing.JTree tree,
java.util.function.Consumer<? super <any>> consumer)
Deprecated.
Temporary solution to resolve simultaneous expansions with async tree model.
Note that the specified consumer must resolve async promise at the end.
|
boolean |
isEmpty() |
void |
readExternal(Element element) |
void |
setScrollToSelection(boolean scrollToSelection) |
java.lang.String |
toString() |
void |
writeExternal(Element element) |
public static final Key<java.lang.ref.WeakReference<ActionCallback>> CALLBACK
public boolean isEmpty()
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface JDOMExternalizable
InvalidDataException
public static TreeState createOn(javax.swing.JTree tree, javax.swing.tree.DefaultMutableTreeNode treeNode)
public static TreeState createOn(javax.swing.JTree tree, javax.swing.tree.TreePath rootPath)
public static TreeState createOn(javax.swing.JTree tree)
public static TreeState createFrom(Element element)
public void writeExternal(Element element) throws WriteExternalException
writeExternal
in interface JDOMExternalizable
WriteExternalException
public void applyTo(javax.swing.JTree tree)
public void applyTo(javax.swing.JTree tree, java.lang.Object root)
public void setScrollToSelection(boolean scrollToSelection)
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public static void expand(javax.swing.JTree tree, java.util.function.Consumer<? super <any>> consumer)