站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

FileObjectSearchGroup (Search API) - NetBeans API Javadoc (Current Development Version)

org.openidex.util/3 3.11

org.openidex.search
Class FileObjectSearchGroup

java.lang.Object
  extended by org.openidex.search.SearchGroup
      extended by org.openidex.search.FileObjectSearchGroup

public class FileObjectSearchGroup
extends SearchGroup

Search group which perform search on file objects. It is a convenience and the default implementation of SearchGroup abstract class.

See Also:
SearchGroup

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openidex.search.SearchGroup
SearchGroup.Factory, SearchGroup.Registry
 
Field Summary
 
Fields inherited from class org.openidex.search.SearchGroup
PROP_FOUND, PROP_RESULT, resultObjects, searchRoots, searchTypes, stopped
 
Constructor Summary
FileObjectSearchGroup()
           
 
Method Summary
protected  void add(SearchType searchType)
          Adds a search type to this search group. If the specified search type does not support searching in FileObjects, the group is left unmodified, too.
 void doSearch()
          Actuall search implementation.
 Node getNodeForFoundObject(Object object)
          Gets node for found object.
 
Methods inherited from class org.openidex.search.SearchGroup
addPropertyChangeListener, createSearchGroups, firePropertyChange, getResultObjects, getSearchRoots, getSearchTypes, prepareSearch, processSearchObject, removePropertyChangeListener, search, setSearchRootNodes, stopSearch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileObjectSearchGroup

public FileObjectSearchGroup()
Method Detail

add

protected void add(SearchType searchType)
Adds a search type to this search group. If the group already contains the search type, the group is left unmodified. If the specified search type does not support searching in FileObjects, the group is left unmodified, too.

Overrides:
add in class SearchGroup
Parameters:
searchType - search type to be added
See Also:
SearchType.getSearchTypeClasses()

doSearch

public void doSearch()
Actuall search implementation. Fires PROP_FOUND notifications. Implements superclass abstract method.

Specified by:
doSearch in class SearchGroup

getNodeForFoundObject

public Node getNodeForFoundObject(Object object)
Gets node for found object. Implements superclass method.

Specified by:
getNodeForFoundObject in class SearchGroup
Returns:
node delegate for found data object or null if the object is not of DataObjectType

org.openidex.util/3 3.11

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.