Package org.apache.jmeter.testbeans.gui
Class TextAreaEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.jmeter.testbeans.gui.TextAreaEditor
-
- All Implemented Interfaces:
FocusListener
,PropertyChangeListener
,PropertyEditor
,EventListener
public class TextAreaEditor extends PropertyEditorSupport implements FocusListener, PropertyChangeListener
-
-
Constructor Summary
Constructors Constructor Description TextAreaEditor()
TextAreaEditor(PropertyDescriptor descriptor)
Construct aTextAreaEditor
using the properties of a givenPropertyDescriptor
TextAreaEditor(Object source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
String
getAsText()
Component
getCustomEditor()
Object
getValue()
void
propertyChange(PropertyChangeEvent evt)
void
setAsText(String text)
void
setValue(Object value)
boolean
supportsCustomEditor()
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
-
-
-
-
Constructor Detail
-
TextAreaEditor
public TextAreaEditor()
-
TextAreaEditor
public TextAreaEditor(Object source)
- Parameters:
source
- the source used for event firing
-
TextAreaEditor
public TextAreaEditor(PropertyDescriptor descriptor)
Construct aTextAreaEditor
using the properties of a givenPropertyDescriptor
- Parameters:
descriptor
- to be used for the editor. Must not benull
-
-
Method Detail
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost
in interfaceFocusListener
-
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditor
in interfacePropertyEditor
- Overrides:
getCustomEditor
in classPropertyEditorSupport
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
setValue
public void setValue(Object value)
- Specified by:
setValue
in interfacePropertyEditor
- Overrides:
setValue
in classPropertyEditorSupport
-
getValue
public Object getValue()
- Specified by:
getValue
in interfacePropertyEditor
- Overrides:
getValue
in classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interfacePropertyEditor
- Overrides:
supportsCustomEditor
in classPropertyEditorSupport
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
-