|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
corelib.io.files.ExtensionFileFilter
public class ExtensionFileFilter
Use this class for filter files by extension. This filter implementation is case insensitive.
| Constructor Summary | |
|---|---|
ExtensionFileFilter(java.lang.String description,
java.lang.String supportedExtension)
Creates a file filter associated to an unique extension. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String[] supportedExtensions)
Creates a file filter associated to the specified extension list. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Accepts (or not) this file, depending of his extension. |
java.lang.String |
getDescription()
Returns the description of this file filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionFileFilter(java.lang.String description,
java.lang.String supportedExtension)
description - The filter description.supportedExtension - The associated extension.
public ExtensionFileFilter(java.lang.String description,
java.lang.String[] supportedExtensions)
description - The filter description.supportedExtensions - The corresponding extension list.| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in class javax.swing.filechooser.FileFilterfile - The file to check.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||