public final class VisibilityQuery extends Object
This query should be considered only as a recommendation. Particular views may decide to display all files and ignore this query.
VisibilityQueryImplementation
Modifier and Type | Method | Description |
---|---|---|
void |
addChangeListener(ChangeListener l) |
Add a listener to changes.
|
static VisibilityQuery |
getDefault() |
Get default instance of VisibilityQuery.
|
boolean |
isVisible(File file) |
Check whether a file is recommended to be visible.
|
boolean |
isVisible(org.openide.filesystems.FileObject file) |
Check whether a file is recommended to be visible.
|
void |
removeChangeListener(ChangeListener l) |
Stop listening to changes.
|
public static final VisibilityQuery getDefault()
public boolean isVisible(org.openide.filesystems.FileObject file)
file
- a file which should be checkedpublic boolean isVisible(File file)
file
- a file which should be checkedpublic void addChangeListener(ChangeListener l)
l
- a listener to addpublic void removeChangeListener(ChangeListener l)
l
- a listener to removeBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.