public static class FileSelectButton.ExtensionFileFilter
extends java.lang.Object
implements java.io.FileFilter
Modifier and Type | Field and Description |
---|---|
private boolean |
acceptAll |
private java.lang.String[] |
extensions |
private boolean |
includeDirs |
private boolean |
mustExist |
private java.lang.String[] |
normalizedExt |
Constructor and Description |
---|
ExtensionFileFilter() |
ExtensionFileFilter(boolean mustExist,
java.lang.String... extensions) |
ExtensionFileFilter(java.lang.String... extensions) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname)
Tests whether or not the specified pathname should be
included in a pathname list.
|
boolean |
acceptAll() |
static FileSelectButton.ExtensionFileFilter |
AcceptAll(boolean mustExist) |
java.lang.String[] |
getExtensions() |
java.lang.String[] |
getNormalizedExtensions() |
boolean |
includeFolders() |
boolean |
mustExist() |
void |
setAcceptAll(boolean acceptAll) |
void |
setExtensions(java.lang.String[] extensions) |
void |
setIncludeFolders(boolean include) |
void |
setMustExist(boolean mustExist) |
private boolean acceptAll
private java.lang.String[] extensions
private boolean includeDirs
private boolean mustExist
private java.lang.String[] normalizedExt
public ExtensionFileFilter()
public ExtensionFileFilter(boolean mustExist, java.lang.String... extensions)
public ExtensionFileFilter(java.lang.String... extensions)
public boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter
pathname
- The pathname to be testedtrue
if and only if pathname
should be includedpublic boolean acceptAll()
public static FileSelectButton.ExtensionFileFilter AcceptAll(boolean mustExist)
public java.lang.String[] getExtensions()
public java.lang.String[] getNormalizedExtensions()
public boolean includeFolders()
public boolean mustExist()
public void setAcceptAll(boolean acceptAll)
public void setExtensions(java.lang.String[] extensions)
public void setIncludeFolders(boolean include)
public void setMustExist(boolean mustExist)