Class MyFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- org.openscience.jmol.app.janocchio.MyFileFilter
-
public class MyFileFilter extends javax.swing.filechooser.FileFilter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]extensionsprivate java.lang.Stringlabel
-
Constructor Summary
Constructors Constructor Description MyFileFilter(java.lang.String[] extensions, java.lang.String label)MyFileFilter(java.lang.String extension, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File f)booleancheckExtension(java.io.File f)java.lang.StringgetDescription()
-
-
-
Method Detail
-
accept
public boolean accept(java.io.File f)
- Specified by:
acceptin classjavax.swing.filechooser.FileFilter
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classjavax.swing.filechooser.FileFilter
-
checkExtension
public boolean checkExtension(java.io.File f)
-
-