Class z390.SelectFileType
java.lang.Object
javax.swing.filechooser.FileFilter
z390.SelectFileType
- Enclosing class:
z390
define accept and getdescription methods
for file chooser to filter files to just
select_file_type if any
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept a fileget description for file typeprivate StringgetExtension(File f) get extension from file object
-
Constructor Details
-
SelectFileType
public SelectFileType()Dummy constructor - no initialization needed
-
-
Method Details
-
accept
accept a file- Specified by:
acceptin classFileFilter- Parameters:
f- file object- Returns:
- true if file selected; false otherwise
-
getDescription
get description for file type- Specified by:
getDescriptionin classFileFilter- Returns:
- text for file type
-
getExtension
get extension from file object- Parameters:
f- file object- Returns:
- file extension
-