com.vaadin.data.util
Class FilesystemContainer.FileExtensionFilter
java.lang.Object
com.vaadin.data.util.FilesystemContainer.FileExtensionFilter
- All Implemented Interfaces:
- FilenameFilter, Serializable
- Enclosing class:
- FilesystemContainer
public class FilesystemContainer.FileExtensionFilter
- extends Object
- implements FilenameFilter, Serializable
Generic file extension filter for displaying only files having certain
extension.
- Since:
- 3.0
- Version:
- 7.0.0.alpha3
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
Method Summary |
boolean |
accept(File dir,
String name)
Allows only files with the extension and directories. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilesystemContainer.FileExtensionFilter
public FilesystemContainer.FileExtensionFilter(String fileExtension)
- Constructs a new FileExtensionFilter using given extension.
- Parameters:
fileExtension
- the File extension without the separator (dot).
accept
public boolean accept(File dir,
String name)
- Allows only files with the extension and directories.
- Specified by:
accept
in interface FilenameFilter
- See Also:
FilenameFilter.accept(File, String)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.