|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.fife.ui.rtextfilechooser.filters.ExtensionFileFilter
A file filter for JFileChoosers that filters using extensions
given by the user.
| Field Summary | |
static int |
CASE_CHECK
|
static int |
NO_CASE_CHECK
|
static int |
SYSTEM_CASE_CHECK
|
| Constructor Summary | |
ExtensionFileFilter(java.lang.String description,
java.lang.String extension)
Constructor. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions)
Constructor. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions,
int caseCheck)
Constructor. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions,
int caseCheck,
boolean showExtensions)
Constructor. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String extension,
int caseCheck)
Constructor. |
|
ExtensionFileFilter(java.lang.String description,
java.lang.String extension,
int caseCheck,
boolean showExtensions)
Constructor. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Accepts all directories and all files matching the specified extensions. |
java.lang.String |
getDescription()
Returns the description of this filter, displayed in the file chooser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SYSTEM_CASE_CHECK
public static final int CASE_CHECK
public static final int NO_CASE_CHECK
| Constructor Detail |
public ExtensionFileFilter(java.lang.String description,
java.lang.String extension)
description - The description of this file filter, as will be
displayed in the file chooser.extension - The single extension files can have to match this
filter. This string should be everything after the final
".".
public ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions)
description - The description of this file filter, as will be
displayed in the file chooser.extensions - The extensions files can have to match this filter.
These strings should be everything after the final
".".
public ExtensionFileFilter(java.lang.String description,
java.lang.String extension,
int caseCheck)
description - The description of this file filter, as displayed in
the file chooser.extension - The single extension files can have to match this
filter. This string should be everything after the final
".".caseCheck - Whether the case of the file's extension should be
taken into consideration when deciding whether files pass this
filter.
public ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions,
int caseCheck)
description - The description of this file filter, as displayed in
the file chooser.extensions - The extensions files can have to match this filter.
These strings should be everything after the final
".".caseCheck - Whether the case of the file's extension should be
taken into consideration when deciding whether files pass this
filter.
public ExtensionFileFilter(java.lang.String description,
java.lang.String extension,
int caseCheck,
boolean showExtensions)
description - The description of this file filter, as displayed in
the file chooser.extension - The single extension files can have to match this
filter. This string should be everything after the final
".".caseCheck - Whether the case of the file's extension should be
taken into consideration when deciding whether files pass this
filter.showExtensions - Whether the accepted extensions should be
displayed in the description.
public ExtensionFileFilter(java.lang.String description,
java.lang.String[] extensions,
int caseCheck,
boolean showExtensions)
description - The description of this file filter, as displayed in
the file chooser.extensions - The extensions files can have to match this filter.
These strings should be everything after the final
".".caseCheck - Whether the case of the file's extension should be
taken into consideration when deciding whether files pass this
filter.showExtensions - Whether the accepted extensions should be
displayed in the description.| Method Detail |
public boolean accept(java.io.File f)
f - The file to check.
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||