Extension SDK 9.0.5

oracle.jdeveloper.model
Interface ApplicationFilterHelper


public interface ApplicationFilterHelper

The ChildFilterHelper allows implementors to add nodes to a filtered node.


Method Summary
 int getCategories()
          Returns a bitfield indicating the root categories for which this listener should be invoked.
 java.lang.Class[] getNodeClasses()
          Return the node classes for which this helper will be called.
 boolean handleAdd(Element element, Folder parent, java.util.List childrenAdded, ApplicationFilter filter)
          Callers should add the appropriate Locatables to the parent folder.
 boolean handleRemove(Element element, Folder parent, java.util.List childrenRemoved, ApplicationFilter filter)
          Callers should remove the appropriate node(s) to the parent folder.
 

Method Detail

getCategories

public int getCategories()
Returns a bitfield indicating the root categories for which this listener should be invoked.


getNodeClasses

public java.lang.Class[] getNodeClasses()
Return the node classes for which this helper will be called.


handleAdd

public boolean handleAdd(Element element,
                         Folder parent,
                         java.util.List childrenAdded,
                         ApplicationFilter filter)
Callers should add the appropriate Locatables to the parent folder.

Parameters:
element - The element being added.
parent - The root category node.
childrenAdded - The actual element or elements to be added. The first entries in the list should be loacatable elements whose URL is a child of a real java package. Immediately after these may follow one or more package folders along with their children.
filter - The application filter itself. From here users can get at the project object, and create new packages.
Returns:
false if method did not handle the addition.

handleRemove

public boolean handleRemove(Element element,
                            Folder parent,
                            java.util.List childrenRemoved,
                            ApplicationFilter filter)
Callers should remove the appropriate node(s) to the parent folder.

Parameters:
element - The element being removed.
parent - The root category node.
filter - The application filter itself. From here users can get at the project object, and create new packages.
Returns:
false if method did not handle the removal.

Extension SDK

 

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