Extension SDK 9.0.5

oracle.ide.model
Class FilelistFilter

java.lang.Object
  extended byoracle.ide.model.DefaultFilter
      extended byoracle.ide.model.FilelistFilter
All Implemented Interfaces:
ChildFilter, Displayable
Direct Known Subclasses:
CategoryFilter

public class FilelistFilter
extends DefaultFilter

The FilelistFilter class shows a flat children list


Nested Class Summary
 
Nested classes inherited from class oracle.ide.model.DefaultFilter
DefaultFilter.SortedComparator, DefaultFilter.SortedFolderFirstComparator
 
Field Summary
 
Fields inherited from class oracle.ide.model.DefaultFilter
folderFirstComparator, folderFirstComparator2, sortedComparator
 
Fields inherited from interface oracle.ide.explorer.ChildFilter
NO_OPTIONS
 
Constructor Summary
FilelistFilter()
          Constructor.
 
Method Summary
 TNode childrenAdded(java.util.List additions, 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 removals, 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 children.
protected  Project getProject()
           
 int getType()
          This method should return bitfield specifying the filter type.
 void setOwner(TNode owner)
          Sets the node that owns this filter.
protected  void setProject(Project project)
           
 
Methods inherited from class oracle.ide.model.DefaultFilter
cache, canRefresh, canUpdate, checkElementAttributes, closeChildren, getComparator, getIcon, getLongLabel, getOptions, getOwner, getShortLabel, getToolTipText, getURLFilter, refresh, refreshExplorerNode, setOptions, setURLFilter, toString, uncache, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilelistFilter

public FilelistFilter()
Constructor.

Method Detail

getChildren

public java.util.Iterator getChildren()
Get the children. This filter makes sures that when its owner is a project, we don't return children of the project that are owned by other folders contained in the project. This avoids seeing these children more than once in the navigator.

Specified by:
getChildren in interface ChildFilter
Overrides:
getChildren in class DefaultFilter

setOwner

public void setOwner(TNode owner)
Description copied from interface: ChildFilter
Sets the node that owns this filter.

Specified by:
setOwner in interface ChildFilter
Overrides:
setOwner in class DefaultFilter

childrenRemoved

public TNode childrenRemoved(java.util.List removals,
                             TNode parent,
                             TreeExplorer tree)
Description copied from interface: ChildFilter
The childrenRemoved method is called when the UI is notified that an element has been added to the node that owns this filter. This method should return the tnode to be selected in the tree.

Specified by:
childrenRemoved in interface ChildFilter
Overrides:
childrenRemoved in class DefaultFilter

childrenAdded

public TNode childrenAdded(java.util.List additions,
                           TNode parent,
                           TreeExplorer tree)
Description copied from interface: ChildFilter
The childrenAdded method is called when the UI is notified that an element has been added to the node that owns this filter. This method should return the tnode to be selected in the tree.

Specified by:
childrenAdded in interface ChildFilter
Overrides:
childrenAdded in class DefaultFilter

getType

public int getType()
Description copied from interface: ChildFilter
This method should return bitfield specifying the filter type. Filters types are created by calling FilterTypes.newType().

Specified by:
getType in interface ChildFilter
Overrides:
getType in class DefaultFilter

getProject

protected Project getProject()

setProject

protected void setProject(Project project)

Extension SDK

 

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