Package de.willuhn.jameica.gui.input
Class PasswordInput
java.lang.Object
de.willuhn.jameica.gui.input.AbstractInput
de.willuhn.jameica.gui.input.TextInput
de.willuhn.jameica.gui.input.PasswordInput
Ist zustaendig fuer Passwort-Eingabefelder.
- Author:
- willuhn
-
Field Summary
Fields inherited from interface de.willuhn.jameica.gui.input.Input
DATAKEY_TOOLTIP
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordInput
(String value) Erzeugt ein neues Eingabe-Feld und schreibt den uebergebenen Wert rein. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.Control
Liefert das eigentliche Eingabecontrol.void
setShowPassword
(boolean showPassword) Legt fest, ob das Passwort bei der Eingabe angezeigt werden soll.Methods inherited from class de.willuhn.jameica.gui.input.TextInput
disable, enable, focus, getHint, getTextWidget, getValue, isEnabled, setEnabled, setHint, setMaxLength, setValue
Methods inherited from class de.willuhn.jameica.gui.input.AbstractInput
addListener, addListener, getData, getName, getParent, getStyleBits, hasChanged, isMandatory, paint, paint, setComment, setData, setInvalidChars, setMandatory, setName, setValidChars, update
-
Constructor Details
-
PasswordInput
Erzeugt ein neues Eingabe-Feld und schreibt den uebergebenen Wert rein.- Parameters:
value
-
-
-
Method Details
-
getControl
public org.eclipse.swt.widgets.Control getControl()Description copied from interface:Input
Liefert das eigentliche Eingabecontrol. Es muss von jeder abgeleiteten Klasse implementiert werden und das Eingabe-Feld zurueckliefern.Da der Implementierer das Composite benoetigt, in dem das Control positioniert werden soll, kann er sich der Methode
AbstractInput.getParent()
in dieser Klasse bedienen.- Specified by:
getControl
in interfaceInput
- Overrides:
getControl
in classTextInput
- Returns:
- das zu zeichnende Control.
- See Also:
-
setShowPassword
public void setShowPassword(boolean showPassword) Legt fest, ob das Passwort bei der Eingabe angezeigt werden soll. Default: false.- Parameters:
showPassword
-
-