public class TextAreaEditor extends PropertyEditorSupport implements FocusListener, PropertyChangeListener
Constructor and Description |
---|
TextAreaEditor() |
TextAreaEditor(Object source) |
TextAreaEditor(PropertyDescriptor descriptor)
Construct a
TextAreaEditor using the properties of a given
PropertyDescriptor |
Modifier and Type | Method and 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() |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
public TextAreaEditor()
public TextAreaEditor(Object source)
source
- the source used for event firingpublic TextAreaEditor(PropertyDescriptor descriptor)
TextAreaEditor
using the properties of a given
PropertyDescriptor
descriptor
- to be used for the editor. Must not be null
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public Object getValue()
getValue
in interface PropertyEditor
getValue
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.