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 and 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(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(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 remove