Package net.mcreator.ui.component.tree
Class SerializableTreeExpansionState
java.lang.Object
net.mcreator.ui.component.tree.SerializableTreeExpansionState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToTree
(JTree tree) Restores the expansion state to a JTree.Captures the expansion state of a JTree.void
setExpandedPaths
(List<String> expandedPaths)
-
Constructor Details
-
SerializableTreeExpansionState
public SerializableTreeExpansionState() -
SerializableTreeExpansionState
-
-
Method Details
-
getExpandedPaths
-
setExpandedPaths
-
fromTree
Captures the expansion state of a JTree.- Parameters:
tree
- the JTree to capture state from- Returns:
- a SerializableTreeExpansionState representing the JTree's expansion state
-
applyToTree
Restores the expansion state to a JTree.- Parameters:
tree
- the JTree to apply the expansion state to
-