当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
FileObjectSearchGroup (Search API) - NetBeans API Javadoc (Current Development Version)
org.openidex.search
Class FileObjectSearchGroup
java.lang.Object
org.openidex.search.SearchGroup
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
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 FileObject s, 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 |
FileObjectSearchGroup
public FileObjectSearchGroup()
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
FileObject
s, 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