|
|
|||||||||
| 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(java.lang.String extensions,
java.lang.String description)
Creates a file filter that accepts the given file types. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
|
void |
addExtension(java.lang.String extension)
Add an extension to the list of extensions. |
java.lang.String |
getDescription()
|
void |
setExtensions(java.lang.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(java.lang.String extensions,
java.lang.String description)
extensions - the extensions for the file-type.description - the description of the file-type.| Method Detail |
|---|
public void addExtension(java.lang.String extension)
extension - the extension for the file-type without the '.'.public void setExtensions(java.lang.String extensions)
extensions - the extensions for the file-type.public boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||