edu.buffalo.fs7.jaQuzzi
Class JaqFileFilter
java.lang.Object
|
+--javax.swing.filechooser.FileFilter
|
+--edu.buffalo.fs7.jaQuzzi.JaqFileFilter
- public class JaqFileFilter
- extends javax.swing.filechooser.FileFilter
class implementing a file filter. Right now it implements a filter for *.jaq files as
well arbitray extensions.
|
Constructor Summary |
JaqFileFilter()
create a filter for *.jaq files |
JaqFileFilter(java.lang.String ext,
java.lang.String description)
create a filter for a given extension with a given description |
|
Method Summary |
boolean |
accept(java.io.File f)
main method to accept a file |
java.lang.String |
getDescription()
returns the description of the filter |
java.lang.String |
getExtension(java.io.File f)
returns the extension of a given file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaqFileFilter
public JaqFileFilter()
- create a filter for *.jaq files
JaqFileFilter
public JaqFileFilter(java.lang.String ext,
java.lang.String description)
- create a filter for a given extension with a given description
accept
public boolean accept(java.io.File f)
- main method to accept a file
- Overrides:
accept in class javax.swing.filechooser.FileFilter
getDescription
public java.lang.String getDescription()
- returns the description of the filter
- Overrides:
getDescription in class javax.swing.filechooser.FileFilter
getExtension
public java.lang.String getExtension(java.io.File f)
- returns the extension of a given file