| java.lang.Object javax.swing.filechooser.FileFilter org.apache.jmeter.gui.JMeterFileFilter
Constructor Summary | |
public | JMeterFileFilter(String[] extensions) Create a new JMeter file filter which allows the specified extensions. | public | JMeterFileFilter(String[] extensions, boolean allow) Create a new JMeter file filter which allows the specified extensions. |
Method Summary | |
public boolean | accept(File f) Determine if the specified file is allowed by this filter. | public boolean | accept(String filename) Determine if the specified filename is allowed by this filter. | public String | getDescription() Get a description for this filter. |
JMeterFileFilter | public JMeterFileFilter(String[] extensions)(Code) | | Create a new JMeter file filter which allows the specified extensions. If
the array of extensions contains no elements, any file will be allowed.
This constructor will also return all directories
Parameters: extensions - non-null array of allowed file extensions |
JMeterFileFilter | public JMeterFileFilter(String[] extensions, boolean allow)(Code) | | Create a new JMeter file filter which allows the specified extensions. If
the array of extensions contains no elements, any file will be allowed.
Parameters: extensions - non-null array of allowed file extensions Parameters: allow - should directories be returned ? |
accept | public boolean accept(File f)(Code) | | Determine if the specified file is allowed by this filter. The file will
be allowed if it is a directory, or if the end of the filename matches
one of the extensions allowed by this filter. The filename is converted
to lower-case before making the comparison.
Parameters: f - the File being tested true if the file should be allowed, false otherwise |
accept | public boolean accept(String filename)(Code) | | Determine if the specified filename is allowed by this filter. The file
will be allowed if the end of the filename matches one of the extensions
allowed by this filter. The comparison is case-sensitive. If no
extensions were provided for this filter, the file will always be
allowed.
Parameters: filename - the filename to test true if the file should be allowed, false otherwise |
getDescription | public String getDescription()(Code) | | Get a description for this filter.
a description for this filter |
|
|