Class MemberRoleCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.openstreetmap.josm.gui.dialogs.relation.MemberRoleCellEditor
-
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
public class MemberRoleCellEditor extends AbstractCellEditor implements 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
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
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 Object
getCellEditorValue()
AutoCompletingTextField
getEditor()
Returns the edit field for this cell editor.Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, 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 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getEditor
public AutoCompletingTextField getEditor()
Returns the edit field for this cell editor.- Returns:
- the edit field for this cell editor
-
-