|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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.
Constructor Summary | |
---|---|
ExtensionFileFilter(java.lang.String[] extenstionList,
java.lang.String name)
Creates a new instance of ExtensionFileFilter. |
|
ExtensionFileFilter(java.lang.String extension,
java.lang.String name)
Creates a new instance of ExtensionFileFilter. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Returns whether this given File is accepted by this filter. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Returns whether this given File is accepted by this filter. |
java.lang.String |
getDescription()
Gets the localized name of this filter. |
java.lang.String |
getExtension()
|
java.lang.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 |
Constructor Detail |
---|
public ExtensionFileFilter(java.lang.String extension, java.lang.String name)
extension
- The file extension this filter should let pass.name
- The localized name for this filter.public ExtensionFileFilter(java.lang.String[] extenstionList, java.lang.String name)
extenstionList
- The file extensions this filter should let pass.name
- The localized name for this filter.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
file
- The file to check.
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- The directory of the file to check.name
- The name of the file to check.
public java.lang.String getExtension()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |