|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
bin.ExtensionFilter
public class ExtensionFilter
Extension Filter Class
Set-up an extension filter for files, when prompted with "Save" dialogs.
Constructor Summary | |
---|---|
ExtensionFilter()
Default Constructor for class, with no parameters. |
|
ExtensionFilter(java.lang.String ext,
java.lang.String desc)
Default Constructor for class, with 2 parameters. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
This method returns a boolean value, depending on whether the "file" is successfully accepted by the application as being of the correct data-type. |
java.lang.String |
getDescription()
This method returns the String description for use in manipulating the constructor's value for this variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionFilter()
public ExtensionFilter(java.lang.String ext, java.lang.String desc)
ext
- This is used to set a String data-type
as a FileFilter extension.desc
- This is used to provide a String description
of the file extension.Method Detail |
---|
public boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
file
- The File object to be checked for a comparison.
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 |