|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
dlife.sys.SubClassFileFilter
public class SubClassFileFilter
This class filters files in the JFileChooser such that only concrete sub-classes of a specified super-class will be able to be selected.
| Constructor Summary | |
|---|---|
SubClassFileFilter(String superClass)
Construct a new SubClassFileFilter for the specified super class. |
|
| Method Summary | |
|---|---|
boolean |
accept(File f)
Return true if the file f is a subclass of the super class that was specified when this FileFilter was constructed and false otherwise. |
String |
getDescription()
Get the description of this FileFilter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubClassFileFilter(String superClass)
superClass - the super class for the classes that can be selected.| Method Detail |
|---|
public boolean accept(File f)
accept in class FileFilterf - the File to check.
public String getDescription()
getDescription in class FileFilter
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||