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

VisibilityQueryImplementation (NetBeans General Queries API) - NetBeans API Javadoc 5.5.1

org.netbeans.modules.queries/1 1.7.31

org.netbeans.spi.queries
Interface VisibilityQueryImplementation


public interface VisibilityQueryImplementation

Determine whether files should be hidden in views presented to the user.

Global lookup is used to find all instances of VisibilityQueryImplementation.

Threading note: implementors should avoid acquiring locks that might be held by other threads. Generally treat this interface similarly to SPIs in org.openide.filesystems with respect to threading semantics.

See Also:
VisibilityQuery

Method Summary
 void addChangeListener(ChangeListener l)
          Add a listener to changes.
 boolean isVisible(FileObject file)
          Check whether a file is recommended to be visible.
 void removeChangeListener(ChangeListener l)
          Stop listening to changes.
 

Method Detail

isVisible

boolean isVisible(FileObject file)
Check whether a file is recommended to be visible.

Parameters:
file - a file to considered
Returns:
true if it is recommended to display this file

addChangeListener

void addChangeListener(ChangeListener l)
Add a listener to changes.

Parameters:
l - a listener to add

removeChangeListener

void removeChangeListener(ChangeListener l)
Stop listening to changes.

Parameters:
l - a listener to remove

org.netbeans.modules.queries/1 1.7.31

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.