|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.file.filter.FileFilter
com.mucommander.file.filter.ChainedFileFilter
public abstract class ChainedFileFilter
ChainedFileFilter combines one or several FileFilter to act as just one.
addFileFilter(FileFilter) and removeFileFilter(FileFilter) allow to add or remove a
FileFilter, getFileFilterIterator() to iterate through all the registered filters.
The AndFileFilter and OrFileFilter implementations match files that respectively match all of
the registered filters, or any of them
AndFileFilter,
OrFileFilter| Field Summary | |
|---|---|
protected java.util.Vector |
filters
List of registered FileFilter |
| Fields inherited from class com.mucommander.file.filter.FileFilter |
|---|
inverted |
| Constructor Summary | |
|---|---|
ChainedFileFilter()
Creates a new ChainedFileFilter that initially contains no FileFilter. |
|
| Method Summary | |
|---|---|
void |
addFileFilter(FileFilter filter)
Adds a new FileFilter to the list of chained filters. |
java.util.Iterator |
getFileFilterIterator()
Returns an Iterator that traverses all the registered filters. |
boolean |
isEmpty()
Returns true if this chained filter doesn't contain any file filter. |
void |
removeFileFilter(FileFilter filter)
Removes a FileFilter to the list of chained filters. |
| Methods inherited from class com.mucommander.file.filter.FileFilter |
|---|
accept, accept, filter, isInverted, match, match, reject, reject, setInverted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector filters
| Constructor Detail |
|---|
public ChainedFileFilter()
FileFilter.
| Method Detail |
|---|
public void addFileFilter(FileFilter filter)
FileFilter to the list of chained filters.
filter - the FileFilter to addpublic void removeFileFilter(FileFilter filter)
FileFilter to the list of chained filters. Does nothing if the given FileFilter
is not contained by this ChainedFileFilter.
filter - the FileFilter to removepublic java.util.Iterator getFileFilterIterator()
Iterator that traverses all the registered filters.
Iterator that traverses all the registered filters.public boolean isEmpty()
true if this chained filter doesn't contain any file filter.
true if this chained filter doesn't contain any file filter.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard