Class EdalAbstractFileFilter
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.util.EdalAbstractFileFilter
-
- Direct Known Subclasses:
EdalFileNameExtensionFilter
public abstract class EdalAbstractFileFilter extends java.lang.Object
EDALFileFilter
is an abstract class used byEDALFileChooser
for filtering the set of files shown to the user. SeeEDALFileNameExtensionFilter
for an implementation that filters using the file name extension. AEDALFileFilter
can be set on aEDALFileChooser
to keep unwanted files from appearing in the directory listing.
-
-
Constructor Summary
Constructors Constructor Description EdalAbstractFileFilter()
-
Method Summary
Modifier and Type Method Description abstract boolean
accept(ClientPrimaryDataFile file)
Whether the given file is accepted by this filter.abstract java.lang.String
getDescription()
The description of this filter.
-
-
-
Method Detail
-
accept
public abstract boolean accept(ClientPrimaryDataFile file)
Whether the given file is accepted by this filter.- Parameters:
file
- the file to filter- Returns:
- true if accepted
-
getDescription
public abstract java.lang.String getDescription()
The description of this filter. For example: "JPG and GIF Images"- Returns:
- the description
-
-