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.ObjectEDALFileFilteris an abstract class used byEDALFileChooserfor filtering the set of files shown to the user. SeeEDALFileNameExtensionFilterfor an implementation that filters using the file name extension. AEDALFileFiltercan be set on aEDALFileChooserto keep unwanted files from appearing in the directory listing.
-
-
Constructor Summary
Constructors Constructor Description EdalAbstractFileFilter()
-
Method Summary
Modifier and Type Method Description abstract booleanaccept(ClientPrimaryDataFile file)Whether the given file is accepted by this filter.abstract java.lang.StringgetDescription()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
-
-