com.tensegrity.wpalo.client.ui.mvc.cubeview
Class HierarchyTree
java.lang.Object
com.tensegrity.wpalo.client.ui.mvc.cubeview.HierarchyTree
- Direct Known Subclasses:
- FullHierarchyTree, LoDHierarchyTree
public abstract class HierarchyTree
- extends java.lang.Object
HierarchyTree
TODO DOCUMENT ME
- Version:
- $Id: HierarchyTree.java,v 1.30 2010/04/12 11:13:36 PhilippBouillon Exp $
Method Summary |
void |
apply(com.tensegrity.palo.gwt.core.client.models.palo.XElementNode[] initialSelection,
DnDHierarchyTree otherTree,
boolean showOnRight,
java.lang.String paths,
com.tensegrity.palo.gwt.core.client.models.cubeviews.XAxisHierarchy xAxisHierarchy)
|
void |
collapseAll()
|
void |
collapseDeepestLevel()
|
void |
deselectAll()
deselects all currently visible elements. |
void |
deselectAllVisible()
|
void |
expandAll()
|
void |
expandNextLevel()
|
int |
getNumberOfSelectedElements()
|
com.tensegrity.palo.gwt.core.client.models.palo.XElement[] |
getSelectedElements()
|
java.util.LinkedHashSet<FastMSTreeItem> |
getSelection()
|
FastMSTree |
getTree()
|
java.util.ArrayList<FastMSTreeItem> |
getVisibleItems()
|
void |
invertSelection()
inverts the currently visible selection. |
protected abstract void |
loadChildren(HasFastMSTreeItems parentItem,
TreeNode parentNode)
|
void |
reset()
|
void |
selectAll()
selects all currently visible elements. |
void |
selectAllVisible()
|
void |
selectBranch()
|
void |
selectBy(java.lang.String path,
boolean doIt)
|
void |
selectByRegEx(java.lang.String regex,
boolean doIt,
boolean add)
|
void |
selectLeafs(boolean doIt,
boolean add)
|
void |
selectLevel(int lvl,
boolean doIt,
boolean add)
|
void |
setInput(com.tensegrity.palo.gwt.core.client.models.cubeviews.XAxisHierarchy hierarchy,
com.tensegrity.palo.gwt.core.client.models.cubeviews.XViewModel xViewModel)
|
void |
setSelection(com.tensegrity.palo.gwt.core.client.models.palo.XElement[] elements)
|
void |
traverse(com.tensegrity.wpalo.client.ui.mvc.cubeview.FastMSTreeItemVisitor visitor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
protected final FastMSTree tree
xViewModel
protected com.tensegrity.palo.gwt.core.client.models.cubeviews.XViewModel xViewModel
constants
protected final transient ILocalConstants constants
HierarchyTree
public HierarchyTree(boolean multiSelect)
getVisibleItems
public java.util.ArrayList<FastMSTreeItem> getVisibleItems()
getTree
public final FastMSTree getTree()
getSelection
public final java.util.LinkedHashSet<FastMSTreeItem> getSelection()
setInput
public void setInput(com.tensegrity.palo.gwt.core.client.models.cubeviews.XAxisHierarchy hierarchy,
com.tensegrity.palo.gwt.core.client.models.cubeviews.XViewModel xViewModel)
getNumberOfSelectedElements
public int getNumberOfSelectedElements()
reset
public final void reset()
loadChildren
protected abstract void loadChildren(HasFastMSTreeItems parentItem,
TreeNode parentNode)
selectAll
public final void selectAll()
- selects all currently visible elements. note: this only works if tree is
a checkbox tree...
selectAllVisible
public final void selectAllVisible()
selectBranch
public final void selectBranch()
deselectAll
public final void deselectAll()
- deselects all currently visible elements. note: this only works if tree is
a checkbox tree...
deselectAllVisible
public final void deselectAllVisible()
selectLevel
public final void selectLevel(int lvl,
boolean doIt,
boolean add)
selectLeafs
public final void selectLeafs(boolean doIt,
boolean add)
invertSelection
public final void invertSelection()
- inverts the currently visible selection. note: this only works if tree is
a checkbox tree...
selectByRegEx
public final void selectByRegEx(java.lang.String regex,
boolean doIt,
boolean add)
expandNextLevel
public final void expandNextLevel()
expandAll
public final void expandAll()
collapseDeepestLevel
public final void collapseDeepestLevel()
collapseAll
public final void collapseAll()
getSelectedElements
public final com.tensegrity.palo.gwt.core.client.models.palo.XElement[] getSelectedElements()
apply
public final void apply(com.tensegrity.palo.gwt.core.client.models.palo.XElementNode[] initialSelection,
DnDHierarchyTree otherTree,
boolean showOnRight,
java.lang.String paths,
com.tensegrity.palo.gwt.core.client.models.cubeviews.XAxisHierarchy xAxisHierarchy)
selectBy
public final void selectBy(java.lang.String path,
boolean doIt)
setSelection
public final void setSelection(com.tensegrity.palo.gwt.core.client.models.palo.XElement[] elements)
traverse
public final void traverse(com.tensegrity.wpalo.client.ui.mvc.cubeview.FastMSTreeItemVisitor visitor)