|
Extension SDK | |||||||||
| 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.JProjectFilter
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.
| Nested Class Summary | |
static class |
JProjectFilter.CatInfo
|
| Nested classes inherited from class oracle.ide.model.DefaultFilter |
DefaultFilter.SortedComparator, DefaultFilter.SortedFolderFirstComparator |
| Field Summary | |
static int |
COMPONENT
|
static int |
DB_RESOURCE
|
static int |
DEPLOYMENT
|
static int |
EJB
|
static int |
JAVA_SOURCE
|
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 |
static int |
UML_DIAGRAM
|
static int |
WEB_SERVICE
|
static int |
WWW_SOURCE
|
| Fields inherited from class oracle.ide.model.DefaultFilter |
folderFirstComparator, sortedComparator |
| Fields inherited from interface oracle.ide.explorer.ChildFilter |
NO_OPTIONS |
| Constructor Summary | |
JProjectFilter()
|
|
JProjectFilter(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 navigator is needs to determine the sensitivity of the Refresh menu item. |
TNode |
childrenAdded(java.util.List added,
TNode par,
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 par,
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. |
protected static JProjectFilter.CatInfo |
findCategoryInfo(int category)
|
static ChildFilter |
findFilter(TNode tnode,
int filterType)
Deprecated. Replace with JProjectStructureController.findFilter(TNode,int). |
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 JProject |
getProject()
|
int |
getType()
This method should return bitfield specifying the filter type. |
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). |
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. |
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). |
protected void |
setListView(boolean listView)
|
void |
setOptions(int options)
|
void |
setOwner(TNode owner)
Sets the node that owns this filter. |
protected void |
setProject(JProject project)
|
void |
uncache(TNode node)
|
TNode |
update(TNode node,
UpdateMessage change)
This method will be called when the navigator is needs to tell a filter that a property set notification has happened. |
| Methods inherited from class oracle.ide.model.DefaultFilter |
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 JAVA_SOURCE
public static final int WWW_SOURCE
public static final int DB_RESOURCE
public static final int EJB
public static final int COMPONENT
public static final int UML_DIAGRAM
public static final int DEPLOYMENT
public static final int WEB_SERVICE
public static final int OPTION_VIEW_AS_LIST
public static final int PROJECT_REBUILT
| Constructor Detail |
public JProjectFilter()
public JProjectFilter(JProject project)
project - the project whose children are to be filtered.| Method Detail |
public static int newCategory()
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label,
javax.swing.Icon icon,
int filtersSupported)
category - The ID for this category. See 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.
public static boolean isFilterSupported(int category,
int filter)
category - the ID of the category.filter - the ID of the filter to be supported, as specified by
one of the constants in FilterTypes.
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label,
int filtersSupported)
registerCategory(int,Class,String,Icon,int).
public static void registerCategory(int category,
java.lang.Class cls,
java.lang.String label)
registerCategory(int,Class,String,Icon,int).
public static void registerCategory(int category,
java.lang.Class cls,
int filtersSupported)
registerCategory(int,Class,String,Icon,int).
public static void registerCategory(int category,
java.lang.Class cls)
registerCategory(int,Class,String,Icon,int).
public static boolean isFilterSupported(TNode tnode,
int filter)
JProjectStructureController.isFilterSupported(TNode,int).
public static ChildFilter findFilter(TNode tnode,
int filterType)
JProjectStructureController.findFilter(TNode,int).
public static boolean isFilteredBy(TNode tnode,
int filterType)
JProjectStructureController.isFilteredBy(TNode,int).
public static boolean isInProject(TNode tnode)
JProjectStructureController.isInProject(TNode).
public java.util.Iterator getChildren()
FilelistFilter
getChildren in interface ChildFiltergetChildren in class FilelistFilterpublic void setOwner(TNode owner)
ChildFilter
setOwner in interface ChildFiltersetOwner in class FilelistFilter
public TNode childrenAdded(java.util.List added,
TNode par,
TreeExplorer tree)
ChildFilter
childrenAdded in interface ChildFilterchildrenAdded in class FilelistFilter
public TNode childrenRemoved(java.util.List removed,
TNode par,
TreeExplorer tree)
ChildFilter
childrenRemoved in interface ChildFilterchildrenRemoved in class FilelistFilterpublic void cache(TNode node)
ChildFilter
cache in interface ChildFiltercache in class DefaultFilterpublic void uncache(TNode node)
uncache in interface ChildFilteruncache in class DefaultFilterpublic int getOptions()
ChildFilter
getOptions in interface ChildFiltergetOptions in class DefaultFilterpublic void setOptions(int options)
setOptions in interface ChildFiltersetOptions in class DefaultFilterpublic int getType()
ChildFilterFilterTypes.newType().
getType in interface ChildFiltergetType in class FilelistFilterpublic java.util.Comparator getComparator()
ChildFilterComparator that is used to sort the children of
the owner TNode.
getComparator in interface ChildFiltergetComparator in class DefaultFilterpublic boolean canRefresh(TNode[] nodes)
DefaultFilter
canRefresh in interface ChildFiltercanRefresh in class DefaultFilterpublic void refresh(TNode[] nodes)
ChildFilter
refresh in interface ChildFilterrefresh in class DefaultFilter
public TNode update(TNode node,
UpdateMessage change)
DefaultFilter
update in interface ChildFilterupdate in class DefaultFilterprotected void setProject(JProject project)
protected JProject getProject()
protected boolean isListView()
protected void setListView(boolean listView)
protected static JProjectFilter.CatInfo findCategoryInfo(int category)
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.