Package org.apache.jmeter.testbeans.gui
Class PasswordEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.jmeter.testbeans.gui.PasswordEditor
-
- All Implemented Interfaces:
ActionListener,FocusListener,PropertyEditor,EventListener
public class PasswordEditor extends PropertyEditorSupport implements ActionListener, FocusListener
This class implements a property editor for non-null String properties that supports custom editing (i.e.: provides a GUI component) based on a text field.The provided GUI is a simple password field.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPasswordEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)voidfirePropertyChange()Avoid needlessly firing PropertyChanged events.voidfocusGained(FocusEvent e)voidfocusLost(FocusEvent e)StringgetAsText()ComponentgetCustomEditor()ObjectgetValue()voidsetAsText(String value)voidsetValue(Object value)booleansupportsCustomEditor()-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
-
-
-
-
Method Detail
-
getAsText
public String getAsText()
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
setAsText
public void setAsText(String value)
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport
-
getValue
public Object getValue()
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
setValue
public void setValue(Object value)
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classPropertyEditorSupport
-
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditorin interfacePropertyEditor- Overrides:
getCustomEditorin classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditorin interfacePropertyEditor- Overrides:
supportsCustomEditorin classPropertyEditorSupport
-
firePropertyChange
public void firePropertyChange()
Avoid needlessly firing PropertyChanged events.- Overrides:
firePropertyChangein classPropertyEditorSupport
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformedin interfaceActionListener
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLostin interfaceFocusListener
-
-