Class MemberRoleCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.openstreetmap.josm.gui.dialogs.relation.MemberRoleCellEditor
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
public class MemberRoleCellEditor extends javax.swing.AbstractCellEditor implements javax.swing.table.TableCellEditor
TheCellEditor
for the role cell in the table. Supports autocompletion.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AutoCompletionList
autoCompletionList
user input is matched against this list of auto completion itemsprivate AutoCompletionManager
autoCompletionManager
private AutoCompletingTextField
editor
private Relation
relation
-
Constructor Summary
Constructors Constructor Description MemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation)
Constructs a newMemberRoleCellEditor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
-
-
-
Field Detail
-
editor
private final AutoCompletingTextField editor
-
autoCompletionManager
private final AutoCompletionManager autoCompletionManager
-
autoCompletionList
private final AutoCompletionList autoCompletionList
user input is matched against this list of auto completion items
-
-
Constructor Detail
-
MemberRoleCellEditor
public MemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation)
Constructs a newMemberRoleCellEditor
.- Parameters:
autoCompletionManager
- the auto completion manager. Must not be nullrelation
- the relation. Can be null- Since:
- 13675
-
-
Method Detail
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfacejavax.swing.table.TableCellEditor
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
getEditor
public AutoCompletingTextField getEditor()
Returns the edit field for this cell editor.- Returns:
- the edit field for this cell editor
-
-