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
Specialised
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.
- See Also:
-
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, proposalProviderFields 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
ConstructorsConstructorDescriptionCreates a PasswordCellEditor that will not commit a value on pressing the up or the down key.PasswordCellEditor(boolean commitOnUpDown) Creates a PasswordCellEditor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.TextcreateEditorControl(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, getTextKeyListener, isCommitOnEnter, isCommitWithCtrlKey, isEditable, isProposalPopupOpen, setCommitOnEnter, setCommitWithCtrlKey, setDecorationPositionOverride, setEditable, setEditorValue, setErrorDecorationEnabled, setFieldDecorationId, setInputConversionErrorHandler, setInputValidationErrorHandler, setSelectionMode, showErrorDecorationHoverMethods 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 Details
-
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 Details
-
createEditorControl
public org.eclipse.swt.widgets.Text createEditorControl(org.eclipse.swt.widgets.Composite parent) Description copied from interface:ICellEditorCreates the editor control that is wrapped by this ICellEditor. Will use the style configurations in ConfigRegistry for styling the control.- Specified by:
createEditorControlin interfaceICellEditor- Overrides:
createEditorControlin 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.
-