public static class AJFileChooser.ExtensionFileFilter extends javax.swing.filechooser.FileFilter implements Arrays.MainValue
ExtensionFileFilter accepts files with the one of the given extensions
and also any traversable nodes - subdirectories, links, network places, etc.
Also, if the current file filter is ExtensionFileFilter, then
the Save dialog automatically appends the selected file name
by the first extension from extensions list (if the
file name has no extension, or if its extension does not used by
one of existing ExtensionFileFilter instances).
This class in immutable (except possible changes
in the fileChooser).| Modifier and Type | Class and Description |
|---|---|
static class |
AJFileChooser.ExtensionFileFilter.Settings
Settings is an argument for ExtensionFileFilter
|
| Constructor and Description |
|---|
AJFileChooser.ExtensionFileFilter(javax.swing.JFileChooser fileChooser,
AJFileChooser.ExtensionFileFilter.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File f) |
java.lang.String |
getDescription() |
java.lang.Object |
getMainValue()
Implementations of Arrays.MainValue interface.
|
AJFileChooser.ExtensionFileFilter.Settings |
getSettings()
Returns a copy of
extensions converted to lower case. |
public AJFileChooser.ExtensionFileFilter(javax.swing.JFileChooser fileChooser,
AJFileChooser.ExtensionFileFilter.Settings settings)
public AJFileChooser.ExtensionFileFilter.Settings getSettings()
extensions converted to lower case.public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic java.lang.Object getMainValue()
getSettings().getExtensions().getMainValue in interface Arrays.MainValue