public static final class AJFileChooser.ExtensionFileFilter.Settings extends java.lang.Object implements Arrays.MainValue
Settings
is an argument for ExtensionFileFilter
ExtensionFileFilterimmutable and doesn't require JFileChooser
instance.Constructor and Description |
---|
AJFileChooser.ExtensionFileFilter.Settings(java.lang.String[] extensions,
java.lang.String description)
All extensions are automatically converted to lower case
by the call
...toUpperCase().toLowerCase() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns a
description passed to the constructor. |
java.lang.String[] |
getExtensions()
Returns a copy of
extensions converted to lower case. |
java.lang.Object |
getMainValue()
Implementations of Arrays.MainValue interface.
|
public AJFileChooser.ExtensionFileFilter.Settings(java.lang.String[] extensions, java.lang.String description)
...toUpperCase().toLowerCase()
extensions
- - for example, {"jpg"} or {"HTML","htm"}description
- - for example, "JPeg images" or "HTML documents"public java.lang.String[] getExtensions()
extensions
converted to lower case.public java.lang.String getDescription()
description
passed to the constructor.public java.lang.Object getMainValue()
getExtensions()
.getMainValue
in interface Arrays.MainValue