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

VisibilityQuery (NetBeans General Queries API) - NetBeans API Javadoc 5.0.0

 

org.netbeans.api.queries
Class VisibilityQuery

java.lang.Object
  extended byorg.netbeans.api.queries.VisibilityQuery

public final class VisibilityQuery
extends Object

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

This query should be considered only as a recommendation. Particular views may decide to display all files and ignore this query.

See Also:
VisibilityQueryImplementation

Method Summary
 void addChangeListener(ChangeListener l)
          Add a listener to changes.
static VisibilityQuery getDefault()
          Get default instance of VisibilityQuery.
 boolean isVisible(FileObject file)
          Check whether a file is recommended to be visible.
 void removeChangeListener(ChangeListener l)
          Stop listening to changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static final VisibilityQuery getDefault()
Get default instance of VisibilityQuery.

Returns:
instance of VisibilityQuery

isVisible

public boolean isVisible(FileObject file)
Check whether a file is recommended to be visible. Default return value is visible unless at least one VisibilityQueryImplementation provider says hidden.

Parameters:
file - a file which should be checked
Returns:
true if it is recommended to show this file

addChangeListener

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

Parameters:
l - a listener to add

removeChangeListener

public void removeChangeListener(ChangeListener l)
Stop listening to changes.

Parameters:
l - a listener to remove

 

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