oracle.jdeveloper.model
Class CategoryFilter.CategoryRegistry
java.lang.Object
oracle.jdeveloper.model.CategoryFilter.CategoryRegistry
- Enclosing class:
- CategoryFilter
- protected static final class CategoryFilter.CategoryRegistry
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoryFilter.CategoryRegistry
protected CategoryFilter.CategoryRegistry()
registerCategory
public 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 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
protected void registerCategory(CategoryFilter.CatInfo info)
getRegisteredCategories
protected java.util.LinkedList getRegisteredCategories()
getCategoriesById
protected java.util.Map getCategoriesById()
findCategoryInfo
protected CategoryFilter.CatInfo findCategoryInfo(int category)
Copyright © 1997, 2004, Oracle. All rights reserved.