Package org.apache.jmeter.testbeans.gui
Class FileEditor
java.lang.Object
org.apache.jmeter.testbeans.gui.FileEditor
- All Implemented Interfaces:
ActionListener
,PropertyEditor
,EventListener
A property editor for File properties.
Note that it never gives out File objects, but always Strings. This is because JMeter is now too dumb to handle File objects (there's no FileProperty).
-
Constructor Summary
ConstructorDescriptionDeprecated.Only for use by test casesFileEditor
(PropertyDescriptor descriptor) Construct aFileEditor
using the properties of the givenPropertyDescriptor
-
Method Summary
-
Constructor Details
-
FileEditor
Deprecated.Only for use by test cases- Throws:
IntrospectionException
- when introspection fails while creating a dummy PropertyDescriptor
-
FileEditor
Construct aFileEditor
using the properties of the givenPropertyDescriptor
- Parameters:
descriptor
- thePropertyDescriptor
to be used. Must not benull
- Throws:
IllegalArgumentException
- whendescriptor
isnull
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfacePropertyEditor
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Returns:
- the text
-
getCustomEditor
- Specified by:
getCustomEditor
in interfacePropertyEditor
- Returns:
- custom editor panel
-
getJavaInitializationString
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Returns:
- the Java initialisation string
-
getTags
- Specified by:
getTags
in interfacePropertyEditor
- Returns:
- the editor tags
-
getValue
- Specified by:
getValue
in interfacePropertyEditor
- Returns:
- the value
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintable
in interfacePropertyEditor
- Returns:
- true if the editor is paintable
-
paintValue
- Specified by:
paintValue
in interfacePropertyEditor
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfacePropertyEditor
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
-
setValue
- Specified by:
setValue
in interfacePropertyEditor
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditor
in interfacePropertyEditor
- Returns:
- true if supports a custom editor
-