public class PasswordCellEditor extends TextCellEditor
TextCellEditor
that sets the echo char of the text control used by
this editor to a configured character. You can configure the echo character by setting
the attribute CellStyleAttributes.PASSWORD_ECHO_CHAR
to the cell style to use.
If there is no echo character configured, the bullet character will be used.
As the anonymization of the inserted value only relates to the Text
control,
ensure to also register the PasswordTextPainter
so the value is not shown in clear text
after commit.
PasswordTextPainter
commitOnEnter, decorationProvider
cellStyle, configRegistry, conversionEditErrorHandler, dataValidator, displayConverter, editMode, labelStack, layerCell, validationEditErrorHandler
Constructor and Description |
---|
PasswordCellEditor()
Creates a PasswordCellEditor that will not commit a value on pressing the up or the down key.
|
PasswordCellEditor(boolean commitOnUpDown)
Creates a PasswordCellEditor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Text |
createEditorControl(org.eclipse.swt.widgets.Composite parent)
Creates the editor control that is wrapped by this ICellEditor.
|
activateCell, close, createEditorControl, getDecorationProvider, getEditorControl, getEditorValue, getInputConversionErrorHandler, getInputValidationErrorHandler, getSelectionMode, isEditable, setDecorationPositionOverride, setEditable, setEditorValue, setErrorDecorationEnabled, setErrorDecorationText, setInputConversionErrorHandler, setInputValidationErrorHandler, setSelectionMode, showErrorDecorationHover
activateAtAnyPosition, activateCell, addEditorControlListeners, commit, commit, commit, getCanonicalValue, getCanonicalValue, getColumnIndex, getColumnPosition, getRowIndex, getRowPosition, handleConversion, isClosed, openAdjacentEditor, openInline, removeEditorControlListeners, setCanonicalValue, setDataValidator, supportMultiEdit, validateCanonicalValue, validateCanonicalValue
public PasswordCellEditor()
public PasswordCellEditor(boolean commitOnUpDown)
commitOnUpDown
- Flag to configure whether the editor should commit and move the selection
in the corresponding way if the up or down key is pressed.public org.eclipse.swt.widgets.Text createEditorControl(org.eclipse.swt.widgets.Composite parent)
ICellEditor
createEditorControl
in interface ICellEditor
createEditorControl
in class TextCellEditor
parent
- The Composite that will be the parent of the new editor control.
Can not be null
Copyright © 2013. All Rights Reserved.