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 TypeMethodDescriptionboolean
Tests whether or not the specified abstract pathname should be included in a pathname list.boolean
Gets the Description attribute of the RegExpFileFilter objectstatic void
void
setAcceptDirectories
(boolean b) void
setDescription
(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:
accept
in interfaceFilenameFilter
-
accept
Tests whether or not the specified abstract pathname should be included in a pathname list.- Specified by:
accept
in interfaceFileFilter
- Specified by:
accept
in classFileFilter
- Parameters:
f
- The abstract pathname to be tested- Returns:
true
if and only ifpathname
should 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:
getDescription
in classFileFilter
- Returns:
- The Description value
-
main
-