|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.bounce.DefaultFileFilter
public class DefaultFileFilter
The default file filter, allows for setting a description and a file-type extension.
Constructor Summary | |
---|---|
DefaultFileFilter(String extensions,
String description)
Creates a file filter that accepts the given file types. |
Method Summary | |
---|---|
boolean |
accept(File file)
|
void |
addExtension(String extension)
Add an extension to the list of extensions. |
String |
getDescription()
|
void |
setExtensions(String extensions)
Sets all possible extensions for this filter, divided by any of the following tokens " \t\n\r\f;,.:". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileFilter(String extensions, String description)
extensions
- the extensions for the file-type.description
- the description of the file-type.Method Detail |
---|
public void addExtension(String extension)
extension
- the extension for the file-type without the '.'.public void setExtensions(String extensions)
extensions
- the extensions for the file-type.public boolean accept(File file)
accept
in class FileFilter
public String getDescription()
getDescription
in class FileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |