|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
util.ui.ExtensionFileFilter
public class ExtensionFileFilter
A file filter that allows to specify a set of extension for determining, whether a file should be shown.
| Field Summary | |
|---|---|
(package private) String[] |
mExtenstionList
The file extensions this filter should let pass. |
(package private) String |
mName
The localized name for this filter. |
| Constructor Summary | |
|---|---|
ExtensionFileFilter(String[] extenstionList,
String name)
Creates a new instance of ExtensionFileFilter. |
|
ExtensionFileFilter(String extension,
String name)
Creates a new instance of ExtensionFileFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(File file)
Returns whether this given File is accepted by this filter. |
boolean |
accept(File dir,
String name)
Returns whether this given File is accepted by this filter. |
String |
getDescription()
Gets the localized name of this filter. |
String |
toString()
Gets the localized name of this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
String[] mExtenstionList
String mName
| Constructor Detail |
|---|
public ExtensionFileFilter(String extension,
String name)
extension - The file extension this filter should let pass.name - The localized name for this filter.
public ExtensionFileFilter(String[] extenstionList,
String name)
extenstionList - The file extensions this filter should let pass.name - The localized name for this filter.| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean accept(File file)
accept in class FileFilterfile - The file to check.
public String getDescription()
getDescription in class FileFilter
public boolean accept(File dir,
String name)
accept in interface FilenameFilterdir - The directory of the file to check.name - The name of the file to check.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||