|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter edu.jhu.tmaj.util.swing.DefaultFileFilter
public final class DefaultFileFilter
A file filter that display only directories and files that end with a specified extention
Field Summary | |
---|---|
static DefaultFileFilter |
TEXT_FILE_FILTER
|
Constructor Summary | |
---|---|
DefaultFileFilter(java.lang.String extension)
|
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Returns true if the File is a directory or ends with the specified extention, otherwise false. |
java.lang.String |
getDescription()
Returns the extention |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DefaultFileFilter TEXT_FILE_FILTER
Constructor Detail |
---|
public DefaultFileFilter(java.lang.String extension)
Method Detail |
---|
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |