|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.acm.seguin.io.ExtensionFileFilter
public class ExtensionFileFilter
Accepts all files
| Constructor Summary | |
|---|---|
ExtensionFileFilter()
Constructor for the ExtensionFileFilter |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Should this file be accepted |
void |
addExtension(java.lang.String ext)
Add an extension |
java.lang.String |
getDescription()
Return the description of the files accepted |
void |
setDescription(java.lang.String descr)
Sets the description of the files accepted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionFileFilter()
| Method Detail |
|---|
public void setDescription(java.lang.String descr)
descr - the new descriptionpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic void addExtension(java.lang.String ext)
ext - the extension to addpublic boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterfile - the file under consideration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||