|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
turingmachine.CTMFileFilter
Simple file filter.
Field Summary | |
---|---|
private java.lang.String |
mDescription
Human readable description. |
private java.lang.String[] |
mExtensions
List of extensions supported by this filter. |
Constructor Summary | |
---|---|
CTMFileFilter(java.lang.String aDescription,
java.lang.String[] aExtensions)
Constructor. |
Method Summary | |
---|---|
boolean |
accept(java.io.File aFile)
Check whether or not this file type is an accepted type. |
java.lang.String |
getDescription()
Get the human readable form of what extensions this filter supports. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String[] mExtensions
private java.lang.String mDescription
Constructor Detail |
---|
public CTMFileFilter(java.lang.String aDescription, java.lang.String[] aExtensions)
aDescription
- Human readable description of filter.aExtensions
- Entensions allowed by this filter.Method Detail |
---|
public boolean accept(java.io.File aFile)
accept
in class javax.swing.filechooser.FileFilter
aFile
- The file that is to be tested.
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |