Class MemberRoleCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
org.openstreetmap.josm.gui.dialogs.relation.MemberRoleCellEditor
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor
The
CellEditor for the role cell in the table. Supports autocompletion.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AutoCompletionListuser input is matched against this list of auto completion itemsprivate final AutoCompletionManagerprivate final AutoCompletingTextFieldprivate final RelationFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionMemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation) Constructs a newMemberRoleCellEditor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the edit field for this cell editor.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, stopCellEditingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Field Details
-
editor
-
autoCompletionManager
-
relation
-
autoCompletionList
user input is matched against this list of auto completion items
-
-
Constructor Details
-
MemberRoleCellEditor
Constructs a newMemberRoleCellEditor.- Parameters:
autoCompletionManager- the auto completion manager. Must not be nullrelation- the relation. Can be null- Since:
- 13675
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
getEditor
Returns the edit field for this cell editor.- Returns:
- the edit field for this cell editor
-