Package net.mcreator.ui.component.tree
Class SerializableTreeExpansionState
java.lang.Object
net.mcreator.ui.component.tree.SerializableTreeExpansionState
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToTree(JTree tree) Restores the expansion state to a JTree.Captures the expansion state of a JTree.voidsetExpandedPaths(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
 
 -