com.bbn.openmap.util.propertyEditor
Class TextPropertyEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.bbn.openmap.util.propertyEditor.TextPropertyEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.beans.PropertyEditor

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.


Constructor Summary
TextPropertyEditor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 java.lang.String getAsText()
          Returns String from JTextfield.
 java.awt.Component getCustomEditor()
          Returns the editor GUI, ie a JTextField.
 void setValue(java.lang.Object string)
          Sets String in JTextField.
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPropertyEditor

public TextPropertyEditor()
Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor

getCustomEditor

public java.awt.Component getCustomEditor()
Returns the editor GUI, ie a JTextField.

Specified by:
getCustomEditor in interface java.beans.PropertyEditor

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

getAsText

public java.lang.String getAsText()
Returns String from JTextfield.

Specified by:
getAsText in interface java.beans.PropertyEditor


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details