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
ConstructorsConstructorDescriptionDeprecated.Only for use by test casesFileEditor(PropertyDescriptor descriptor) Construct aFileEditorusing 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 aFileEditorusing the properties of the givenPropertyDescriptor- Parameters:
descriptor- thePropertyDescriptorto be used. Must not benull- Throws:
IllegalArgumentException- whendescriptorisnull
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfacePropertyEditor
-
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Returns:
- the text
-
getCustomEditor
- Specified by:
getCustomEditorin interfacePropertyEditor- Returns:
- custom editor panel
-
getJavaInitializationString
- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Returns:
- the Java initialisation string
-
getTags
- Specified by:
getTagsin interfacePropertyEditor- Returns:
- the editor tags
-
getValue
- Specified by:
getValuein interfacePropertyEditor- Returns:
- the value
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintablein interfacePropertyEditor- Returns:
- true if the editor is paintable
-
paintValue
- Specified by:
paintValuein interfacePropertyEditor
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePropertyEditor
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor
-
setValue
- Specified by:
setValuein interfacePropertyEditor
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditorin interfacePropertyEditor- Returns:
- true if supports a custom editor
-