|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
bin.OpenFileExtensionFilter
public class OpenFileExtensionFilter
"Open File" Extension Filter Class
Set-up an extension filter for files, when prompted with "Open" dialogs.
Constructor Summary | |
---|---|
OpenFileExtensionFilter(java.lang.String ext0,
java.lang.String ext1,
java.lang.String ext2,
java.lang.String desc)
Default Constructor for class, with 4 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 OpenFileExtensionFilter(java.lang.String ext0, java.lang.String ext1, java.lang.String ext2, java.lang.String desc)
ext0
- This is used to set a String data-type
as a FileFilter extension.ext1
- This is used to set a String data-type
as a FileFilter extension.ext2
- 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 |