Skip navigation links

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

E17493-04


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.

Skip navigation links

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

E17493-04


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