Package org.apache.jmeter.testbeans.gui
Class FileEditor
-
- All Implemented Interfaces:
-
java.awt.event.ActionListener
,java.beans.PropertyEditor
,java.util.EventListener
public class FileEditor implements PropertyEditor, ActionListener
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
Constructors Constructor Description FileEditor()
FileEditor(PropertyDescriptor descriptor)
Construct a FileEditor using the properties of the given PropertyDescriptor
-
Method Summary
Modifier and Type Method Description void
actionPerformed(ActionEvent e)
void
addPropertyChangeListener(PropertyChangeListener listener)
String
getAsText()
Component
getCustomEditor()
String
getJavaInitializationString()
Array<String>
getTags()
Object
getValue()
boolean
isPaintable()
void
paintValue(Graphics gfx, Rectangle box)
void
removePropertyChangeListener(PropertyChangeListener listener)
void
setAsText(String text)
void
setValue(Object value)
boolean
supportsCustomEditor()
-
-
Constructor Detail
-
FileEditor
FileEditor()
-
FileEditor
FileEditor(PropertyDescriptor descriptor)
Construct a FileEditor using the properties of the given PropertyDescriptor- Parameters:
descriptor
- the PropertyDescriptor to be used.
-
-
Method Detail
-
actionPerformed
void actionPerformed(ActionEvent e)
-
addPropertyChangeListener
void addPropertyChangeListener(PropertyChangeListener listener)
-
getCustomEditor
Component getCustomEditor()
- Returns:
custom editor panel
-
getJavaInitializationString
String getJavaInitializationString()
- Returns:
the Java initialisation string
-
isPaintable
boolean isPaintable()
- Returns:
true if the editor is paintable
-
paintValue
void paintValue(Graphics gfx, Rectangle box)
-
removePropertyChangeListener
void removePropertyChangeListener(PropertyChangeListener listener)
-
supportsCustomEditor
boolean supportsCustomEditor()
- Returns:
true if supports a custom editor
-
-
-
-