|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
com.huguesjohnson.fileFilter.MultiExtensionFileFilter
public class MultiExtensionFileFilter
MultiExtensionFileFilter Filter to accept a list of file extensions
Constructor Summary | |
---|---|
MultiExtensionFileFilter(java.lang.String[] extensionList)
Creates a new instance of MultiExtensionFileFilter |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Tests if a file has an extension of a known type. |
java.lang.String |
getDescription()
Returns the description of file accepted by the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiExtensionFileFilter(java.lang.String[] extensionList)
extensionList
- the list of file extensions to accept NOT case sensitive directories always acceptedMethod Detail |
---|
public final boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
file
- The file to check.
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 |