|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
fr.ove.utils.GenericFileFilter
A file filter for the specified extension.
| Constructor Summary | |
GenericFileFilter()
The default constructor. |
|
GenericFileFilter(java.lang.String type,
java.lang.String extension)
The constructor. |
|
| Method Summary | |
boolean |
accept(java.io.File file)
Whether the given file is accepted by this filter. |
java.lang.String |
getDescription()
The description of this filter. |
java.lang.String |
getExtension()
Gets the file extension. |
java.lang.String |
getType()
Gets the file type. |
void |
setExtension(java.lang.String extension)
Sets the file extension. |
void |
setType(java.lang.String type)
Sets the file type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericFileFilter()
public GenericFileFilter(java.lang.String type,
java.lang.String extension)
type - the file type (e.g. Text, JPEG, etc).extension - the file extension (e.g. txt, jpeg, etc).| Method Detail |
public void setType(java.lang.String type)
type - the file type (e.g. Text, JPEG, etc).public java.lang.String getType()
public void setExtension(java.lang.String extension)
extension - the file extension (e.g. txt, jpeg, etc);public java.lang.String getExtension()
public boolean accept(java.io.File file)
file - the given file.public java.lang.String getDescription()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||