biz.chitec.qapp.gjsaadminclient
Class PasswordEditElement
java.lang.Object
biz.chitec.qapp.gjsaadminclient.AbstractEditElement
biz.chitec.qapp.gjsaadminclient.PasswordEditElement
- All Implemented Interfaces:
- EditElement
- public class PasswordEditElement
- extends AbstractEditElement
Editor for password properties.
While these properties are normal Strings, they are edited without being visible. To prevent typos, each value
has to be typed in twice and has to be equal.
- Version:
- $Id: ade0a21e795feb8e04413552f1a4dc610c37f506 $
- Author:
- cantamen/Dirk Hillbrecht 2007. Released under the GPL.
Field Summary |
private javax.swing.JPasswordField |
p1
|
private javax.swing.JPasswordField |
p2
|
Methods inherited from class biz.chitec.qapp.gjsaadminclient.AbstractEditElement |
addPropertyChangeListener, addTransferActionListener, finalizeChange, fireIsChangedChange, getPropertyName, getValue, isChanged, isEqualInNonNullCase, realize, resetChange, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p1
private javax.swing.JPasswordField p1
p2
private javax.swing.JPasswordField p2
PasswordEditElement
public PasswordEditElement()
getEditComponent
protected javax.swing.JComponent getEditComponent()
- Description copied from class:
AbstractEditElement
- Create the edit component and return it.
Only called once per instance. Returns the actual edit element and performs certain initialisation steps on it.
It's up to the derived implementation to do the right things with the edit component in advance.
- Specified by:
getEditComponent
in class AbstractEditElement
- Returns:
- Fully initialized edit component
checkButtons
protected void checkButtons()
- Overrides:
checkButtons
in class AbstractEditElement
getValueFromEditComponent
protected java.lang.Object getValueFromEditComponent()
- Description copied from class:
AbstractEditElement
- Get edited value out of the edit component.
The value has to be converted from the representation in the edit component to real representation.
- Specified by:
getValueFromEditComponent
in class AbstractEditElement
- Returns:
- Edited value.
setValueInEditComponent
protected void setValueInEditComponent(java.lang.Object value)
- Description copied from class:
AbstractEditElement
- Pass value of the property to the edit component in an appropriate way.
The representation of the value to be edited is up to the edit component and completely encapsulated in this method.
- Specified by:
setValueInEditComponent
in class AbstractEditElement
- Parameters:
value
- Value to show in the edit component