com.bbn.openmap.util.propertyEditor
Class TextPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
com.bbn.openmap.util.propertyEditor.TextPropertyEditor
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.FocusListener, java.beans.PropertyEditor, java.util.EventListener
public class TextPropertyEditor
- extends java.beans.PropertyEditorSupport
- implements java.awt.event.ActionListener, java.awt.event.FocusListener
A PropertyEditor that displays a TextField to edit a String.
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPropertyEditor
public TextPropertyEditor()
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interface java.beans.PropertyEditor
- Overrides:
supportsCustomEditor
in class java.beans.PropertyEditorSupport
getCustomEditor
public java.awt.Component getCustomEditor()
- Returns the editor GUI, ie a JTextField.
- Specified by:
getCustomEditor
in interface java.beans.PropertyEditor
- Overrides:
getCustomEditor
in class java.beans.PropertyEditorSupport
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
setValue
public void setValue(java.lang.Object string)
- Sets String in JTextField.
- Specified by:
setValue
in interface java.beans.PropertyEditor
- Overrides:
setValue
in class java.beans.PropertyEditorSupport
getAsText
public java.lang.String getAsText()
- Returns String from JTextfield.
- Specified by:
getAsText
in interface java.beans.PropertyEditor
- Overrides:
getAsText
in class java.beans.PropertyEditorSupport
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details