public class PasswordEditor extends PropertyEditorSupport implements ActionListener, FocusListener
The provided GUI is a simple password field.
Modifier | Constructor and Description |
---|---|
protected |
PasswordEditor() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
firePropertyChange()
Avoid needlessly firing PropertyChanged events.
|
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
String |
getAsText() |
Component |
getCustomEditor() |
Object |
getValue() |
void |
setAsText(String value) |
void |
setValue(Object value) |
boolean |
supportsCustomEditor() |
addPropertyChangeListener, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String value)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public Object getValue()
getValue
in interface PropertyEditor
getValue
in class PropertyEditorSupport
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public void firePropertyChange()
firePropertyChange
in class PropertyEditorSupport
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.