|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.apache.jmeter.gui.JMeterFileFilter
public class JMeterFileFilter
A file filter which allows files to be filtered based on a list of allowed extensions. Optionally returns directories.
Constructor Summary | |
---|---|
JMeterFileFilter(java.lang.String[] extensions)
Create a new JMeter file filter which allows the specified extensions. |
|
JMeterFileFilter(java.lang.String[] extensions,
boolean allow)
Create a new JMeter file filter which allows the specified extensions. |
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Determine if the specified file is allowed by this filter. |
boolean |
accept(java.lang.String filename)
Determine if the specified filename is allowed by this filter. |
java.lang.String |
getDescription()
Get a description for this filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMeterFileFilter(java.lang.String[] extensions)
extensions
- non-null array of allowed file extensionspublic JMeterFileFilter(java.lang.String[] extensions, boolean allow)
extensions
- non-null array of allowed file extensionsallow
- should directories be returned ?Method Detail |
---|
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
f
- the File being tested
public boolean accept(java.lang.String filename)
filename
- the filename to test
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |