oracle.jdeveloper.model
Class JProjectFilter
java.lang.Object
oracle.ide.model.DefaultFilter
oracle.ide.model.FilelistFilter
oracle.jdeveloper.model.CategoryFilter
oracle.jdeveloper.model.JProjectFilter
- All Implemented Interfaces:
- ChildFilter, Displayable
- public class JProjectFilter
- extends CategoryFilter
The JProjectFilter
class organizes the children of a project into a predefined structure. Children of the project that implement the Category
interface are grouped based on the registered categories.
Method Summary |
static ChildFilter |
findFilter(TNode tnode, int filterType)
Deprecated. Replace with JProjectStructureController.findFilter(TNode,int) . |
protected CategoryFilter.CategoryRegistry |
getCategoryRegistry()
Subclass must override this method and return a registry containing valid categories. |
static boolean |
isFilteredBy(TNode tnode, int filterType)
Deprecated. Replace with JProjectStructureController.isFilteredBy(TNode,int) . |
static boolean |
isFilterSupported(int category, int filter)
Returns whether the category with the specified ID supports the specified filter. |
static boolean |
isFilterSupported(TNode tnode, int filter)
Deprecated. Replace with JProjectStructureController.isFilterSupported(TNode,int) . |
static boolean |
isInProject(TNode tnode)
Deprecated. Replace with JProjectStructureController.isInProject(TNode) . |
static void |
registerCategory(int category, java.lang.Class cls)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int) . |
static void |
registerCategory(int category, java.lang.Class cls, int filtersSupported)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int) . |
static void |
registerCategory(int category, java.lang.Class cls, java.lang.String label)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int) . |
static void |
registerCategory(int category, java.lang.Class cls, java.lang.String label, javax.swing.Icon icon, int filtersSupported)
Registers a new project category with the specified attributes. |
static void |
registerCategory(int category, java.lang.Class cls, java.lang.String label, int filtersSupported)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int) . |
Methods inherited from class oracle.jdeveloper.model.CategoryFilter |
cache, canRefresh, canSupportFilter, canUpdate, childrenAdded, childrenRemoved, closeChildren, findCategoryFolder, getCategoryNode, getChildren, getComparator, getOptions, getProjectChildren, getType, handleAdd, handleRemove, isListView, newCategory, refresh, registerCategories, setListView, setOptions, setOwner, uncache, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JAVA_SOURCE
public static final int JAVA_SOURCE
WWW_SOURCE
public static final int WWW_SOURCE
DB_OBJECT
public static final int DB_OBJECT
DB_RESOURCE
public static final int DB_RESOURCE
EJB
public static final int EJB
COMPONENT
public static final int COMPONENT
UML_DIAGRAM
public static final int UML_DIAGRAM
DEPLOYMENT
public static final int DEPLOYMENT
WEB_SERVICE
public static final int WEB_SERVICE
JProjectFilter
public JProjectFilter()
JProjectFilter
public JProjectFilter(JProject project)
- Constructor.
- Parameters:
project
- the project whose children are to be filtered.
registerCategory
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label,
javax.swing.Icon icon,
int filtersSupported)
- Registers a new project category with the specified attributes.
-
- Parameters:
category
- The ID for this category. See CategoryFilter.newCategory()
.
cls
- The CategoryFolder
subclass that represents this category; use null
to specify a default CategoryFolder
.
label
- The display name used to represent this category.
icon
- The display icon used to represent this category; use null
to specify the default folder icon.
filtersSupported
- The bit mask of FilterTypes
supported by this category; specify FilterTypes.NONE
if no filters are supported.
isFilterSupported
public static boolean isFilterSupported(int category,
int filter)
- Returns whether the category with the specified ID supports the specified filter.
-
- Parameters:
category
- the ID of the category.
filter
- the ID of the filter to be supported, as specified by one of the constants in FilterTypes
.
registerCategory
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label,
int filtersSupported)
- Deprecated. Replace with
registerCategory(int,Class,String,Icon,int)
.
registerCategory
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label)
- Deprecated. Replace with
registerCategory(int,Class,String,Icon,int)
.
registerCategory
public static void registerCategory(int category,
java.lang.Class cls,
int filtersSupported)
- Deprecated. Replace with
registerCategory(int,Class,String,Icon,int)
.
registerCategory
public static void registerCategory(int category,
java.lang.Class cls)
- Deprecated. Replace with
registerCategory(int,Class,String,Icon,int)
.
isFilterSupported
public static boolean isFilterSupported(TNode tnode,
int filter)
- Deprecated. Replace with
JProjectStructureController.isFilterSupported(TNode,int)
.
findFilter
public static ChildFilter findFilter(TNode tnode,
int filterType)
- Deprecated. Replace with
JProjectStructureController.findFilter(TNode,int)
.
isFilteredBy
public static boolean isFilteredBy(TNode tnode,
int filterType)
- Deprecated. Replace with
JProjectStructureController.isFilteredBy(TNode,int)
.
isInProject
public static boolean isInProject(TNode tnode)
- Deprecated. Replace with
JProjectStructureController.isInProject(TNode)
.
getCategoryRegistry
protected CategoryFilter.CategoryRegistry getCategoryRegistry()
- Description copied from class:
CategoryFilter
- Subclass must override this method and return a registry containing valid categories.
-
- Overrides:
getCategoryRegistry
in class CategoryFilter
Copyright © 1997, 2004, Oracle. All rights reserved.