Extension SDK 9.0.5

oracle.jdeveloper.model
Class CategoryFilter.CategoryRegistry

java.lang.Object
  extended byoracle.jdeveloper.model.CategoryFilter.CategoryRegistry
Enclosing class:
CategoryFilter

protected static final class CategoryFilter.CategoryRegistry
extends java.lang.Object


Constructor Summary
protected CategoryFilter.CategoryRegistry()
           
 
Method Summary
protected  CategoryFilter.CatInfo findCategoryInfo(int category)
           
protected  java.util.Map getCategoriesById()
           
protected  java.util.LinkedList getRegisteredCategories()
           
 boolean isFilterSupported(int category, int filter)
          Returns whether the category with the specified ID supports the specified filter.
protected  void registerCategory(CategoryFilter.CatInfo info)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryFilter.CategoryRegistry

protected CategoryFilter.CategoryRegistry()
Method Detail

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)

Extension SDK

 

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