|
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 ChildFilter
public TNode getOwner()
getOwner
in interface ChildFilter
public int getOptions()
ChildFilter
getOptions
in interface ChildFilter
public void setOptions(int options)
setOptions
in interface ChildFilter
public void uncache(TNode node)
uncache
in interface ChildFilter
public void cache(TNode node)
ChildFilter
cache
in interface ChildFilter
public void refresh(TNode[] nodes)
ChildFilter
refresh
in interface ChildFilter
public boolean canRefresh(TNode[] nodes)
canRefresh
in interface ChildFilter
public TNode update(TNode node, UpdateMessage change)
update
in interface ChildFilter
public URLFilter getURLFilter()
getURLFilter
in interface ChildFilter
public void setURLFilter(URLFilter filter)
ChildFilter
setURLFilter
in interface ChildFilter
public 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 ChildFilter
public int getType()
ChildFilter
FilterTypes.newType()
.
getType
in interface ChildFilter
public java.util.Comparator getComparator()
ChildFilter
Comparator
that is used to sort the children of
the owner TNode
.
getComparator
in interface ChildFilter
public java.lang.String getShortLabel()
getShortLabel
in interface Displayable
Displayable
that can be shown to the user.public java.lang.String getLongLabel()
getLongLabel
in interface Displayable
Displayable
that
can be shown to the user.public javax.swing.Icon getIcon()
getIcon
in interface Displayable
Icon
to be displayed for the
Displayable
.public java.lang.String getToolTipText()
getToolTipText
in interface Displayable
Displayable
.public java.lang.String toString()
toString
in interface Displayable
protected 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.