public class Handler
extends java.lang.Object
Handlers are registered through the ElementTreeRootNode's ElementRegistry.
Example:
elementTreeRootNode.getElementRegistry().register(MyNode.class, new MyNodeHandler);
| Constructor and Description |
|---|
Handler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExpanded(java.util.HashMap expansionStore,
Element[] hierarchy)
Producers are queried to restore the expansion state of a tree after a transformation.
|
void |
storeExpansionState(java.util.HashMap expansionStore,
Element[] hierarchy)
Gives the handler the oportunity to store the expansion state.
|
public void storeExpansionState(java.util.HashMap expansionStore,
Element[] hierarchy)
expansionStore - can be used to store any value you want to retrieve in isExpanded(java.util.HashMap, oracle.ide.model.Element[])hierarchy - The complete hierarchy of this Element in the tree. hierarchy[0] is the root of the tree.isExpanded(java.util.HashMap, oracle.ide.model.Element[])public boolean isExpanded(java.util.HashMap expansionStore,
Element[] hierarchy)
expansionStore - is the same HashMap that was passed to storeExpansionState(HashMap, Element[]).hierarchy - The complete hierarchy of this Element in the tree. hierarchy[0] is the root of the tree.