com.togethersoft.openapi.ide.inspector.util.editors
Class SwingStringEditor
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
|
+--com.togethersoft.openapi.ide.inspector.util.editors.SwingStringEditor
- Direct Known Subclasses:
- SwingPasswordEditor
- public class SwingStringEditor
- extends SwingEditorSupport
Represents editor for string properties as a JTextField.
- Author:
- TogetherSoft
| Constructor Summary |
SwingStringEditor() Creates JPanel with JTextField and adds KeyListener for "ENTER pressed" event. |
| Methods inherited from class java.beans.PropertyEditorSupport |
isPaintable, paintValue, getJavaInitializationString, getAsText, setAsText, getTags, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |
SwingStringEditor
public SwingStringEditor()
- Creates JPanel with JTextField and adds KeyListener for "ENTER pressed" event.
createTextField
protected JTextField createTextField()
- Creates new JTextField.
getCustomEditor
public Component getCustomEditor()
getValue
public Object getValue()
- Returns string value of JTextField.
setFireOnFocusLost
public void setFireOnFocusLost(boolean fireOnFocusLost)
setValue
public void setValue(Object obj)
- Sets value to JTestField.
- Parameters:
- obj - Value to be set
to Class javax.swing.JTextField