public class ExtensionFileFilter extends FileFilter
| Constructor and Description |
|---|
ExtensionFileFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File f)
Checks if the file you have entered is valid to your file extensions
|
void |
addExtension(String ext)
adds an extension to search for, when you start a open or save dialog
|
void |
clearExtensions()
removes all extensions and prepare to create new
|
String |
getDescription()
Returns the actual description for your preselected file extensions.
|
void |
setDescription(String desc)
The description for your preselected file extensions.
|
public void addExtension(String ext)
ext - the extension you want to search forpublic void clearExtensions()
public void setDescription(String desc)
desc - the descriptionpublic String getDescription()
getDescription in class FileFilterpublic boolean accept(File f)
accept in class FileFilterf - the file to checkCopyright © 2013. All rights reserved.