Extension SDK

oracle.jdeveloper.dialogs
Interface ClassPackageBrowserFilter


public interface ClassPackageBrowserFilter

A filter for classes and package displayed in the ClassPackageBrowser.

If an instance of ClassPackageBrowserFilter is provided to the ClassPackageBrowser, it will be used to check each package and class added to the browser. If a package is not accepted, it and any children will not be shown; rejecting a class results in the class not being shown.


Method Summary
 boolean acceptClass(JotClass cls)
          Whether a class should be accepted.
 boolean acceptPackage(java.lang.String pkg)
          Whether a package should be accepted.
 

Method Detail

acceptPackage

public boolean acceptPackage(java.lang.String pkg)
Whether a package should be accepted. If a package is not accepted, the node for it will not be created. This means that any classes in the package or any sub-packages will not be made available either.

Parameters:
pkg - the package name.
Returns:
whether the filter accepts the package.

acceptClass

public boolean acceptClass(JotClass cls)
Whether a class should be accepted. If a class is not accepted, the node for it will not be created.

Parameters:
cls - the JOT representation of the class.
Returns:
whether the filter accepts the class.

Extension SDK

 

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