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

E13403-04

oracle.ide.explorer
Class ChildFilterHelper

java.lang.Object
  extended by oracle.ide.explorer.ChildFilterHelper
Direct Known Subclasses:
ContentSetFilter

public abstract class ChildFilterHelper
extends java.lang.Object

Instances of ChildFilterHelper modify the behavior of a ChildFilterFactory, which itself affects how child elements appear in a navigator. A helper is registered via a ChildFilterFactory, which creates instances of ChildFilter configured with the helpers. Each instance of ChildFilterHelper registered with a ChildFilterFactory is shared by all instances of ChildFilter created by the factory. As a result of this, all ChildFilterHelper implementations must be stateless, determining all their behavior solely on immutable state, global state, or parameters passed via the Context in initChildren(oracle.ide.Context, java.util.List).


Constructor Summary
ChildFilterHelper()
           
 
Method Summary
 boolean handleChildrenAdded(Context context, java.util.List children, TNode parent, TreeExplorer tree)
           
 boolean handleChildrenRemoved(Context context, java.util.List children, TNode parent, TreeExplorer tree)
           
abstract  void initChildren(Context context, java.util.List children)
          Implementations of this method must populate the children List with Element instances that represent the root-level children of the project in the Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildFilterHelper

public ChildFilterHelper()
Method Detail

initChildren

public abstract void initChildren(Context context,
                                  java.util.List children)
Implementations of this method must populate the children List with Element instances that represent the root-level children of the project in the Context. Flags that specify how the children should be rendered are passed through the Context.

Parameters:
context - The Context containing the project whose children need to be rendered. The Context may also contains flags specifying how the children should be rendered.
children - The List that the method should modify to pass the List of children back to the ProjectFilter. If multiple ChildFilterHelper are active at the same time, later helpers will see the result of earlier helpers in the children List.

handleChildrenAdded

public boolean handleChildrenAdded(Context context,
                                   java.util.List children,
                                   TNode parent,
                                   TreeExplorer tree)

handleChildrenRemoved

public boolean handleChildrenRemoved(Context context,
                                     java.util.List children,
                                     TNode parent,
                                     TreeExplorer tree)

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

E13403-04

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