Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.controls.elementtree
Class Handler

java.lang.Object
  extended by oracle.ide.controls.elementtree.Handler


public class Handler
extends java.lang.Object

A Handler is responsible for restoring the expansion state of a tree that has been refreshed.

Handlers are registered through the ElementTreeRootNode's ElementRegistry. Example:

   elementTreeRootNode.getElementRegistry().register(MyNode.class, new MyNodeHandler);
 

Constructor Summary
Handler()
           

 

Method Summary
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Handler

public Handler()

Method Detail

storeExpansionState

public void storeExpansionState(java.util.HashMap expansionStore,
                                Element[] hierarchy)
Gives the handler the oportunity to store the expansion state. Before to transform the tree, the handlers are offered to store information about expansion state. After the transformation, the handlers are queried to restore the expansion state. The producer can store any object that would allow it to identify what nodes to expand. The default behavior of Handler is to re-expand children with the same name.
Parameters:
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.
See Also:
isExpanded(java.util.HashMap, oracle.ide.model.Element[])

isExpanded

public boolean isExpanded(java.util.HashMap expansionStore,
                          Element[] hierarchy)
Producers are queried to restore the expansion state of a tree after a transformation.
Parameters:
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.
Returns:
true if the element must be expanded.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.