|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.filechooser.FileFilter
|
+--kawigi.util.GenericFileFilter
Good All-purpose configurable file filter.
| Constructor Summary | |
GenericFileFilter(java.lang.String name)
Creates a new file filter with the given description. |
|
GenericFileFilter(java.lang.String name,
java.lang.String extension)
Creates a new file filter with the given description and single file extension. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Returns true if the file should be shown with this filter. |
void |
addExtension(java.lang.String ext)
Adds a file extension accepted by this filter. |
java.lang.String |
getDescription()
Returns the description of this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericFileFilter(java.lang.String name)
public GenericFileFilter(java.lang.String name,
java.lang.String extension)
| Method Detail |
public void addExtension(java.lang.String ext)
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterpublic 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 | |||||||||