Class PasswordCellEditor
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.editor.AbstractCellEditor
-
- org.eclipse.nebula.widgets.nattable.edit.editor.TextCellEditor
-
- org.eclipse.nebula.widgets.nattable.edit.editor.PasswordCellEditor
-
- All Implemented Interfaces:
ICellEditor
public class PasswordCellEditor extends TextCellEditor
SpecialisedTextCellEditor
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 attributeCellStyleAttributes.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 thePasswordTextPainter
so the value is not shown in clear text after commit.- See Also:
PasswordTextPainter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.AbstractCellEditor
AbstractCellEditor.InlineFocusListener, AbstractCellEditor.InlineTraverseListener
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.TextCellEditor
autoActivationCharacters, autoActivationDelay, commitOnEnter, contentProposalAdapter, controlContentAdapter, decorationProvider, keyStroke, proposalAcceptanceStyle, proposalProvider
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.AbstractCellEditor
cellStyle, configRegistry, conversionEditErrorHandler, dataValidator, displayConverter, editMode, focusListener, labelStack, layerCell, parent, traverseListener, validationEditErrorHandler
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Text
createEditorControl(org.eclipse.swt.widgets.Composite parent)
Creates the editor control that is wrapped by this ICellEditor.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.TextCellEditor
activateCell, close, configureContentProposalAdapter, createEditorControl, enableContentProposal, enableContentProposal, getDecorationProvider, getEditorControl, getEditorValue, getInputConversionErrorHandler, getInputValidationErrorHandler, getSelectionMode, isCommitOnEnter, isCommitWithCtrlKey, isEditable, isProposalPopupOpen, setCommitOnEnter, setCommitWithCtrlKey, setDecorationPositionOverride, setEditable, setEditorValue, setErrorDecorationEnabled, setFieldDecorationId, setInputConversionErrorHandler, setInputValidationErrorHandler, setSelectionMode, showErrorDecorationHover
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.AbstractCellEditor
activateAtAnyPosition, activateCell, activateOnTraversal, addEditorControlListeners, calculateControlBounds, commit, commit, commit, getCanonicalValue, getCanonicalValue, getColumnIndex, getColumnPosition, getRowIndex, getRowPosition, handleConversion, isClosed, openAdjacentEditor, openInline, openMultiEditDialog, removeEditorControlListeners, setCanonicalValue, setDataValidator, supportMultiEdit, validateCanonicalValue, validateCanonicalValue
-
-
-
-
Constructor Detail
-
PasswordCellEditor
public PasswordCellEditor()
Creates a PasswordCellEditor that will not commit a value on pressing the up or the down key.
-
PasswordCellEditor
public PasswordCellEditor(boolean commitOnUpDown)
Creates a PasswordCellEditor.- Parameters:
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.
-
-
Method Detail
-
createEditorControl
public org.eclipse.swt.widgets.Text createEditorControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface:ICellEditor
Creates the editor control that is wrapped by this ICellEditor. Will use the style configurations in ConfigRegistry for styling the control.- Specified by:
createEditorControl
in interfaceICellEditor
- Overrides:
createEditorControl
in classTextCellEditor
- Parameters:
parent
- The Composite that will be the parent of the new editor control. Can not benull
- Returns:
- The created editor control that is wrapped by this ICellEditor.
-
-