Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.ide.controls.elementtree
Class Filter

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

public class Filter
extends java.lang.Object

A Filter extracts the children from a parent Element and/or filters the produce of other filters.
When an element is expanded, the element tree collects all the filters registered for the element's class and its supertypes. The distinct result of all the getChildren() is combined and then filtered by calls to isValid() for each collected filter.
Filters are registered through the ElementTreeRootNode's ElementRegistry. Example:

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


Constructor Summary
Filter()
           
 
Method Summary
 java.util.List<Element> getChildren(Element parent)
          Produces the children elements.
 boolean isValid(Element child)
          Filters the child elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Method Detail

getChildren

public java.util.List<Element> getChildren(Element parent)
Produces the children elements.

Parameters:
parent - the parent element
Returns:
a list of children or null.

isValid

public boolean isValid(Element child)
Filters the child elements.

Parameters:
child - the child to check
Returns:
false to reject the child.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

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