Package rma.io
Class RegExpFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
rma.io.RegExpFileFilter
- All Implemented Interfaces:
FileFilter,FilenameFilter
-
Constructor Summary
ConstructorsConstructorDescriptionRegExpFileFilter(List filters) Create a new RegExpFileFilter objectRegExpFileFilter(List filters, boolean reverse) Create a new RegExpFileFilter object -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether or not the specified abstract pathname should be included in a pathname list.booleanGets the Description attribute of the RegExpFileFilter objectstatic voidvoidsetAcceptDirectories(boolean b) voidsetDescription(String description) Sets the description of this filter.
-
Constructor Details
-
RegExpFileFilter
Create a new RegExpFileFilter object- Parameters:
filters- Description
-
RegExpFileFilter
Create a new RegExpFileFilter object- Parameters:
filters- Descriptionreverse- Description
-
-
Method Details
-
setAcceptDirectories
public void setAcceptDirectories(boolean b) -
accept
- Specified by:
acceptin interfaceFilenameFilter
-
accept
Tests whether or not the specified abstract pathname should be included in a pathname list.- Specified by:
acceptin interfaceFileFilter- Specified by:
acceptin classFileFilter- Parameters:
f- The abstract pathname to be tested- Returns:
trueif and only ifpathnameshould be included
-
setDescription
Sets the description of this filter. For example: "JPG and GIF Images"- Parameters:
description-
-
getDescription
Gets the Description attribute of the RegExpFileFilter object- Specified by:
getDescriptionin classFileFilter- Returns:
- The Description value
-
main
-