类 GenericFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- org.meteoinfo.map.config.GenericFileFilter
-
public class GenericFileFilter extends javax.swing.filechooser.FileFilter- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 GenericFileFilter(java.lang.String[] filesExtsIn, java.lang.String description)This is the constructor - it takes in the following:-
filesExtsIn - this is the array of file extensions that you wish to create a file filter for.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanaccept(java.io.File f)This is the method to allow a file to bee added to the displayed list or not.java.lang.StringgetDescription()This is the method defined by the modeljava.lang.StringgetFileExtent()Get file extent
-
-
-
构造器详细资料
-
GenericFileFilter
public GenericFileFilter(java.lang.String[] filesExtsIn, java.lang.String description)This is the constructor - it takes in the following:-
filesExtsIn - this is the array of file extensions that you wish to create a file filter for.
description - this is the description that will be displayed in the file chooser dialog box.- 参数:
filesExtsIn- File extensionsdescription- Description
-
-
方法详细资料
-
getFileExtent
public java.lang.String getFileExtent()
Get file extent- 返回:
- File extent
-
accept
public boolean accept(java.io.File f)
This is the method to allow a file to bee added to the displayed list or not. This method is called by the model that handles the FileChooser dialog- 指定者:
accept在类中javax.swing.filechooser.FileFilter- 参数:
f- File- 返回:
- Boolean
-
getDescription
public java.lang.String getDescription()
This is the method defined by the model- 指定者:
getDescription在类中javax.swing.filechooser.FileFilter- 返回:
-
-