public class TreeMemory extends Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.swt.events.TreeListener |
addTreeListener(org.eclipse.swt.widgets.Tree tree,
String treeName)
This method creates, adds and returns a tree listener that will keep track of the expanded/collapsed state of the
TreeItems.
|
void |
clear() |
static TreeMemory |
getInstance() |
boolean |
isExpanded(String treeName,
String[] path) |
static void |
setExpandedFromMemory(org.eclipse.swt.widgets.Tree tree,
String treeName)
Expand of collapse all TreeItems in the complete tree based on the values stored in memory.
|
void |
storeExpanded(String treeName,
String[] path,
boolean expanded) |
void |
storeExpanded(String treeName,
org.eclipse.swt.widgets.TreeItem treeItem,
boolean expanded) |
public static final TreeMemory getInstance()
public void storeExpanded(String treeName, org.eclipse.swt.widgets.TreeItem treeItem, boolean expanded)
public void clear()
public static final org.eclipse.swt.events.TreeListener addTreeListener(org.eclipse.swt.widgets.Tree tree, String treeName)
tree
- The tree to add the listener topublic static void setExpandedFromMemory(org.eclipse.swt.widgets.Tree tree, String treeName)
tree
- The tree to format.Copyright © 2019 Hitachi Vantara. All rights reserved.