|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--edu.umich.visualsoar.misc.SoarFileFilter
This class describes the filter of a JFileChooser
Constructor Summary | |
SoarFileFilter()
|
Method Summary | |
boolean |
accept(java.io.File f)
Will only accept files with a vsa extension |
boolean |
accept(java.io.File dir,
java.lang.String name)
Same as the other accept method, but included for compatibilty with the FilenameFilter interface used for native dialogs |
java.lang.String |
getDescription()
|
private java.lang.String |
getSuffix(java.io.File f)
Gets a suffix off a file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SoarFileFilter()
Method Detail |
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
private java.lang.String getSuffix(java.io.File f)
f
- the file to examine
|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |