public class FileEditor
extends java.lang.Object
implements java.beans.PropertyEditor, java.awt.event.ActionListener
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 and Description |
---|
FileEditor()
Deprecated.
Only for use by test cases
|
FileEditor(java.beans.PropertyDescriptor descriptor)
Construct a
FileEditor using the properties of the given
PropertyDescriptor |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.String |
getAsText() |
java.awt.Component |
getCustomEditor() |
java.lang.String |
getJavaInitializationString() |
java.lang.String[] |
getTags() |
java.lang.Object |
getValue() |
boolean |
isPaintable() |
void |
paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setAsText(java.lang.String text) |
void |
setValue(java.lang.Object value) |
boolean |
supportsCustomEditor() |
@Deprecated public FileEditor() throws java.beans.IntrospectionException
java.beans.IntrospectionException
- when introspection fails while creating a dummy
PropertyDescriptorpublic FileEditor(java.beans.PropertyDescriptor descriptor)
FileEditor
using the properties of the given
PropertyDescriptor
descriptor
- the PropertyDescriptor
to be used. Must not be null
java.lang.IllegalArgumentException
- when descriptor
is null
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface java.beans.PropertyEditor
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
public java.lang.String getJavaInitializationString()
getJavaInitializationString
in interface java.beans.PropertyEditor
public java.lang.String[] getTags()
getTags
in interface java.beans.PropertyEditor
public java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
public boolean isPaintable()
isPaintable
in interface java.beans.PropertyEditor
public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
paintValue
in interface java.beans.PropertyEditor
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface java.beans.PropertyEditor
public void setAsText(java.lang.String text)
setAsText
in interface java.beans.PropertyEditor
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.