public class MemberRoleCellEditor extends javax.swing.AbstractCellEditor implements javax.swing.table.TableCellEditor
CellEditor for the role cell in the table. Supports autocompletion.| Modifier and Type | Field and Description |
|---|---|
private AutoCompletionList |
autoCompletionList
user input is matched against this list of auto completion items
|
private AutoCompletionManager |
autoCompletionManager |
private AutoCompletingTextField |
editor |
private Relation |
relation |
| Constructor and Description |
|---|
MemberRoleCellEditor(AutoCompletionManager autoCompletionManager,
Relation relation)
Constructs a new
MemberRoleCellEditor. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCellEditorValue() |
AutoCompletingTextField |
getEditor()
Returns the edit field for this cell editor.
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingprivate final AutoCompletingTextField editor
private final AutoCompletionManager autoCompletionManager
private final AutoCompletionList autoCompletionList
public MemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation)
MemberRoleCellEditor.autoCompletionManager - the auto completion manager. Must not be nullrelation - the relation. Can be nullpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic AutoCompletingTextField getEditor()