|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.DefaultFilter
The DefaultFilter class. This is an abstract class implementing
default filter behavior. This class mainly provides default
Displayable behavior.
| Nested Class Summary | |
static class |
DefaultFilter.SortedComparator
Builtin Comparator class for ordering the children of a
container node in locale-sensitive collation order. |
static class |
DefaultFilter.SortedFolderFirstComparator
Builtin Comparator class for ordering the children of a
container node, with container children ordered before non-container
children. |
| Field Summary | |
static java.util.Comparator |
folderFirstComparator
Builtin DefaultFilter.SortedComparator for ordering container children before
non-container children in locale-sensitive collation order. |
static java.util.Comparator |
sortedComparator
Builtin DefaultFilter.SortedComparator for ordering the children of a container
node in locale-sensitive collation order. |
| Fields inherited from interface oracle.ide.explorer.ChildFilter |
NO_OPTIONS |
| Constructor Summary | |
DefaultFilter()
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 children,
TNode parent,
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 children,
TNode parent,
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. |
java.util.Iterator |
getChildren()
Get the filtered children list. |
java.util.Comparator |
getComparator()
Returns the DefaultFilter.SortedComparator that is used to sort the children of
the owner TNode. |
javax.swing.Icon |
getIcon()
Returns the filter owner icon. |
java.lang.String |
getLongLabel()
Returns the filter owner long label. |
int |
getOptions()
Accessors to filter options. |
TNode |
getOwner()
|
java.lang.String |
getShortLabel()
Returns the filter owner short label. |
java.lang.String |
getToolTipText()
Returns the filter owner tool tip text. |
int |
getType()
This method should return bitfield specifying the filter type. |
URLFilter |
getURLFilter()
|
void |
refresh(TNode[] nodes)
This method will be called when the UI is requested to refresh. |
protected void |
refreshExplorerNode(TNode tnode)
|
void |
setOptions(int options)
|
void |
setOwner(TNode owner)
Sets the node that owns this filter. |
void |
setURLFilter(URLFilter filter)
Sets the file filter used to exclude specific files |
java.lang.String |
toString()
Returns the filter owner short label. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.util.Comparator sortedComparator
DefaultFilter.SortedComparator for ordering the children of a container
node in locale-sensitive collation order.
public static final java.util.Comparator folderFirstComparator
DefaultFilter.SortedComparator for ordering container children before
non-container children in locale-sensitive collation order.
| Constructor Detail |
public DefaultFilter()
| Method Detail |
public void setOwner(TNode owner)
ChildFilter
setOwner in interface ChildFilterpublic TNode getOwner()
getOwner in interface ChildFilterpublic int getOptions()
ChildFilter
getOptions in interface ChildFilterpublic void setOptions(int options)
setOptions in interface ChildFilterpublic void uncache(TNode node)
uncache in interface ChildFilterpublic void cache(TNode node)
ChildFilter
cache in interface ChildFilterpublic void refresh(TNode[] nodes)
ChildFilter
refresh in interface ChildFilterpublic boolean canRefresh(TNode[] nodes)
canRefresh in interface ChildFilter
public TNode update(TNode node,
UpdateMessage change)
update in interface ChildFilterpublic URLFilter getURLFilter()
getURLFilter in interface ChildFilterpublic void setURLFilter(URLFilter filter)
ChildFilter
setURLFilter in interface ChildFilterpublic java.util.Iterator getChildren()
ChildFilter
getChildren in interface ChildFilter
public TNode childrenAdded(java.util.List children,
TNode parent,
TreeExplorer tree)
ChildFilter
childrenAdded in interface ChildFilter
public TNode childrenRemoved(java.util.List children,
TNode parent,
TreeExplorer tree)
ChildFilter
childrenRemoved in interface ChildFilterpublic int getType()
ChildFilterFilterTypes.newType().
getType in interface ChildFilterpublic java.util.Comparator getComparator()
ChildFilterComparator that is used to sort the children of
the owner TNode.
getComparator in interface ChildFilterpublic java.lang.String getShortLabel()
getShortLabel in interface DisplayableDisplayable
that can be shown to the user.public java.lang.String getLongLabel()
getLongLabel in interface DisplayableDisplayable that
can be shown to the user.public javax.swing.Icon getIcon()
getIcon in interface DisplayableIcon to be displayed for the
Displayable.public java.lang.String getToolTipText()
getToolTipText in interface DisplayableDisplayable.public java.lang.String toString()
toString in interface Displayableprotected void refreshExplorerNode(TNode tnode)
|
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.