Package de.das.encrypter.tools
Class KeyFileFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
de.das.encrypter.tools.KeyFileFileFilter
This class is used together with the swing class JFileChooser and restricts
the file selection offer to valid key bundles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the given file is accepted by this filter.Returns the description of the file filter.
-
Constructor Details
-
KeyFileFileFilter
Create a new instance of KeyFileFileFIlter.- Parameters:
desc- a language dependent description used by this file filter.
-
-
Method Details
-
accept
Whether the given file is accepted by this filter.- Specified by:
acceptin classFileFilter- Parameters:
f- the File to test- Returns:
- true if the file is to be accepted
-
getDescription
Returns the description of the file filter.- Specified by:
getDescriptionin classFileFilter- Returns:
- the description of the file filter.
-