public class ChooseFileFilter extends javax.swing.filechooser.FileFilter implements FILEFilter, java.io.FileFilter
构造器和说明 |
---|
ChooseFileFilter() |
ChooseFileFilter(java.util.EnumSet<FileExtension> filters)
使用指定枚举类集合构建文件过滤器
|
ChooseFileFilter(java.util.EnumSet<FileExtension> filters,
java.lang.String description)
使用指定枚举类集合构建文件过滤器
|
ChooseFileFilter(FileExtension extension) |
ChooseFileFilter(FileExtension extension,
java.lang.String description) |
ChooseFileFilter(java.lang.String extension) |
ChooseFileFilter(java.lang.String[] filters) |
ChooseFileFilter(java.lang.String[] filters,
boolean isExtend) |
ChooseFileFilter(java.lang.String[] filters,
java.lang.String description) |
ChooseFileFilter(java.lang.String extension,
java.lang.String description) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(java.io.File f)
是否支持改文档
|
boolean |
accept(FILE f)
是否支持
|
void |
addExtension(java.lang.String extension)
加扩展
|
boolean |
containsExtension(java.lang.String extension)
是否包含该扩展
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription()
取描述
|
java.lang.String |
getExtension(java.io.File f) |
java.lang.String |
getExtension(FILE f) |
java.lang.String |
getExtensionString()
get extention.
|
boolean |
isExtensionListInDescription()
扩展是否列在描述之内了
|
void |
setDescription(java.lang.String description) |
void |
setExtensionListInDescription(boolean b) |
java.lang.String |
toString()
toString方便重写
|
public ChooseFileFilter()
public ChooseFileFilter(java.lang.String extension)
public ChooseFileFilter(java.lang.String extension, java.lang.String description)
public ChooseFileFilter(java.lang.String[] filters)
public ChooseFileFilter(java.lang.String[] filters, boolean isExtend)
public ChooseFileFilter(java.lang.String[] filters, java.lang.String description)
public ChooseFileFilter(FileExtension extension)
public ChooseFileFilter(FileExtension extension, java.lang.String description)
public ChooseFileFilter(java.util.EnumSet<FileExtension> filters)
filters
- 文件扩展名枚举类集合public ChooseFileFilter(java.util.EnumSet<FileExtension> filters, java.lang.String description)
filters
- 文件扩展名枚举类集合description
- 描述public boolean accept(java.io.File f)
accept
在接口中 java.io.FileFilter
accept
在类中 javax.swing.filechooser.FileFilter
f
- 文件public boolean accept(FILE f)
accept
在接口中 FILEFilter
f
- 文件public java.lang.String getExtension(java.io.File f)
public java.lang.String getExtension(FILE f)
public void addExtension(java.lang.String extension)
extension
- 扩展public boolean containsExtension(java.lang.String extension)
containsExtension
在接口中 FILEFilter
extension
- 扩展public java.lang.String getDescription()
FILEFilter
getDescription
在接口中 FILEFilter
getDescription
在类中 javax.swing.filechooser.FileFilter
public void setDescription(java.lang.String description)
public void setExtensionListInDescription(boolean b)
public boolean isExtensionListInDescription()
public java.lang.String getExtensionString()
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object