Package rma.util
Class RMAFilenameFilter
java.lang.Object
javax.swing.filechooser.FileFilter
rma.util.RMAFilenameFilter
- All Implemented Interfaces:
FilenameFilter
class for filenamefilters
-
Constructor Summary
ConstructorsConstructorDescriptionRMAFilenameFilter
(String... extensions) RMAFilenameFilter
(String[] extensions, String description) RMAFilenameFilter
(String extension, String description) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Tests if a specified file should be included in a file list.void
addExtension
(String ext) static String
getExtension
(File f) String[]
void
void
removeExtension
(String ext) void
setAcceptDirectories
(boolean b) void
setDescription
(String description) toString()
-
Constructor Details
-
RMAFilenameFilter
public RMAFilenameFilter() -
RMAFilenameFilter
-
RMAFilenameFilter
-
RMAFilenameFilter
-
-
Method Details
-
setAcceptDirectories
public void setAcceptDirectories(boolean b) -
toString
-
accept
Tests if a specified file should be included in a file list.- Specified by:
accept
in interfaceFilenameFilter
- Parameters:
dir
- the directory in which the file was found.name
- the name of the file.- Returns:
true
if and only if the name should be included in the file list;false
otherwise.
-
accept
- Specified by:
accept
in classFileFilter
-
setDescription
-
getDescription
- Specified by:
getDescription
in classFileFilter
-
addExtension
-
getExtensions
-
getExtension
-
removeExtension
-
removeAllExtensions
public void removeAllExtensions()
-