|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.ui.core.widget.TreeMemory
public class TreeMemory
This singleton class remembers whether or not a TreeItem is expanded. When the tree is refreshed, it remembers, making for a better user experience.
Method Summary | |
---|---|
static TreeListener |
addTreeListener(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(Tree tree,
String treeName)
Expand of collapse all TreeItems in the complete tree based on the values stored in memory. |
void |
storeExpanded(String treeName,
TreeItem treeItem,
boolean expanded)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final TreeMemory getInstance()
public void storeExpanded(String treeName, TreeItem treeItem, boolean expanded)
public boolean isExpanded(String treeName, String[] path)
public void clear()
public static final TreeListener addTreeListener(Tree tree, String treeName)
tree
- The tree to add the listener to
public static void setExpandedFromMemory(Tree tree, String treeName)
tree
- The tree to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |