|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
cdox.gui.ExtensionFilter
This class arranges the file extensions in the JFileChooser defined in CDoxFrame.
Constructor Summary | |
ExtensionFilter(java.lang.String ext,
java.lang.String desc,
java.lang.String alt)
The Constructor accepts two String (extension and description) which will be stored. |
Method Summary | |
boolean |
accept(java.io.File file)
This Method returns true when the file is accepted by the extensionFilter. |
java.lang.String |
getAlternativeExtension()
Returns the alternative extension. |
java.lang.String |
getDescription()
This Method returns the extension's description. |
java.lang.String |
getExtension()
Returns the extension. |
java.lang.String |
toString()
Returns this class as the extensions it represents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExtensionFilter(java.lang.String ext, java.lang.String desc, java.lang.String alt)
ext
- is the extensiondesc
- is the file extension's descriptionalt
- is an alternative filter (for example *.jpg && *.jpeg)Method Detail |
public boolean accept(java.io.File file)
file
- is the File to check.
public java.lang.String getDescription()
public java.lang.String getExtension()
public java.lang.String getAlternativeExtension()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |