|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.model.DefaultFilter
oracle.ide.model.FilelistFilter
oracle.jdeveloper.model.CategoryFilter
The CategoryFilter
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.
Nested Class Summary | |
protected static class |
CategoryFilter.CategoryRegistry
|
static class |
CategoryFilter.CatInfo
|
protected static class |
CategoryFilter.JProjectComparator
Comparator class used to sort children of the
CategoryFilter . |
Nested classes inherited from class oracle.ide.model.DefaultFilter |
DefaultFilter.SortedComparator, DefaultFilter.SortedFolderFirstComparator |
Field Summary | |
static int |
LAST_CATEGORY_SHIFT
Deprecated. Category ID constants should be generated with newCategory() . |
static int |
OPTION_VIEW_AS_LIST
|
static int |
PROJECT_REBUILT
Internal use only |
Fields inherited from class oracle.ide.model.DefaultFilter |
folderFirstComparator, folderFirstComparator2, sortedComparator |
Fields inherited from interface oracle.ide.explorer.ChildFilter |
NO_OPTIONS |
Constructor Summary | |
CategoryFilter()
|
|
CategoryFilter(JProject project)
Constructor. |
Method Summary | |
void |
cache(TNode node)
This method will be called when the UI creates a TNode that is a descendant of a filtered node. |
boolean |
canRefresh(TNode[] nodes)
This method will be called when the UI needs to determine the sensitivity of the Refresh menu item. |
boolean |
canSupportFilter(int category,
int filter)
|
boolean |
canUpdate(TNode node,
UpdateMessage change)
Call to determine if an update should be done due a property set notification. |
TNode |
childrenAdded(java.util.List added,
TNode subject,
TreeExplorer tree)
The childrenAdded method is called when the UI is notified that an element has been added to the node that owns this filter. |
TNode |
childrenRemoved(java.util.List removed,
TNode subject,
TreeExplorer tree)
The childrenRemoved method is called when the UI is notified that an element has been added to the node that owns this filter. |
void |
closeChildren()
This method is called when a parent node is closed. |
protected CategoryFolder |
findCategoryFolder(Element element)
|
protected TNode |
getCategoryNode(CategoryFolder folder,
TreeExplorer tree)
|
protected CategoryFilter.CategoryRegistry |
getCategoryRegistry()
Subclass must override this method and return a registry containing valid categories. |
java.util.Iterator |
getChildren()
Get the children. |
java.util.Comparator |
getComparator()
Returns the Comparator that is used to sort the children of
the owner TNode . |
int |
getOptions()
Accessors to filter options. |
protected java.util.Iterator |
getProjectChildren()
|
int |
getType()
This method should return bitfield specifying the filter type. |
protected boolean |
handleAdd(Element element,
CategoryFolder folder,
java.util.List childrenToAdd,
ChildFilter folderFilter,
Element subject,
boolean checkOwner)
|
protected boolean |
handleRemove(Element element,
CategoryFolder folder,
java.util.List childrenToRemove,
ChildFilter folderFilter,
Element subject)
|
protected boolean |
isListView()
|
static int |
newCategory()
Returns a new unique category ID. |
void |
refresh(TNode[] nodes)
This method will be called when the UI is requested to refresh. |
protected static void |
registerCategories(CategoryFilter.CategoryRegistry registry,
CategoryFilter.CatInfo[] categories)
|
protected void |
setListView(boolean listView)
|
void |
setOptions(int options)
|
void |
setOwner(TNode owner)
Sets the node that owns this filter. |
void |
uncache(TNode node)
|
TNode |
update(TNode node,
UpdateMessage change)
This method will be called when the UI needs to tell a filter that a property set notification has happened. |
Methods inherited from class oracle.ide.model.FilelistFilter |
getProject, setProject |
Methods inherited from class oracle.ide.model.DefaultFilter |
checkElementAttributes, getIcon, getLongLabel, getOwner, getShortLabel, getToolTipText, getURLFilter, refreshExplorerNode, setURLFilter, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int LAST_CATEGORY_SHIFT
newCategory()
.
final int MY_CATEGORY = 1 << LAST_CATEGORY_SHIFT++;
public static final int OPTION_VIEW_AS_LIST
public static final int PROJECT_REBUILT
Constructor Detail |
public CategoryFilter()
public CategoryFilter(JProject project)
project
- the project whose children are to be filtered.Method Detail |
public static int newCategory()
public java.util.Iterator getChildren()
FilelistFilter
getChildren
in interface ChildFilter
getChildren
in class FilelistFilter
public void setOwner(TNode owner)
ChildFilter
setOwner
in interface ChildFilter
setOwner
in class FilelistFilter
public TNode childrenAdded(java.util.List added, TNode subject, TreeExplorer tree)
ChildFilter
childrenAdded
in interface ChildFilter
childrenAdded
in class FilelistFilter
public TNode childrenRemoved(java.util.List removed, TNode subject, TreeExplorer tree)
ChildFilter
childrenRemoved
in interface ChildFilter
childrenRemoved
in class FilelistFilter
public void cache(TNode node)
ChildFilter
cache
in interface ChildFilter
cache
in class DefaultFilter
public void uncache(TNode node)
uncache
in interface ChildFilter
uncache
in class DefaultFilter
public int getOptions()
ChildFilter
getOptions
in interface ChildFilter
getOptions
in class DefaultFilter
public void setOptions(int options)
setOptions
in interface ChildFilter
setOptions
in class DefaultFilter
public int getType()
ChildFilter
FilterTypes.newType()
.
getType
in interface ChildFilter
getType
in class FilelistFilter
public java.util.Comparator getComparator()
ChildFilter
Comparator
that is used to sort the children of
the owner TNode
.
getComparator
in interface ChildFilter
getComparator
in class DefaultFilter
public boolean canRefresh(TNode[] nodes)
ChildFilter
canRefresh
in interface ChildFilter
canRefresh
in class DefaultFilter
public void refresh(TNode[] nodes)
ChildFilter
refresh
in interface ChildFilter
refresh
in class DefaultFilter
public void closeChildren()
ChildFilter
closeChildren
in interface ChildFilter
closeChildren
in class DefaultFilter
public boolean canUpdate(TNode node, UpdateMessage change)
ChildFilter
canUpdate
in interface ChildFilter
canUpdate
in class DefaultFilter
public TNode update(TNode node, UpdateMessage change)
ChildFilter
update
in interface ChildFilter
update
in class DefaultFilter
public boolean canSupportFilter(int category, int filter)
protected boolean isListView()
protected void setListView(boolean listView)
protected CategoryFilter.CategoryRegistry getCategoryRegistry()
protected java.util.Iterator getProjectChildren()
protected boolean handleAdd(Element element, CategoryFolder folder, java.util.List childrenToAdd, ChildFilter folderFilter, Element subject, boolean checkOwner)
protected boolean handleRemove(Element element, CategoryFolder folder, java.util.List childrenToRemove, ChildFilter folderFilter, Element subject)
protected static void registerCategories(CategoryFilter.CategoryRegistry registry, CategoryFilter.CatInfo[] categories)
protected CategoryFolder findCategoryFolder(Element element)
protected TNode getCategoryNode(CategoryFolder folder, TreeExplorer tree)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.