public class TagCellEditor extends javax.swing.AbstractCellEditor implements javax.swing.table.TableCellEditor
Modifier and Type | Field and Description |
---|---|
protected AutoCompletionManager |
autocomplete
the cache of auto completion items derived from the current JOSM data set
|
protected AutoCompletionList |
autoCompletionList
user input is matched against this list of auto completion items
|
protected TagModel |
currentTag |
protected AutoCompletingTextField |
editor |
Constructor and Description |
---|
TagCellEditor()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
autoCompletionItemSelected(java.lang.String item) |
AutoCompletionList |
getAutoCompletionList()
replies the
AutoCompletionList this table cell editor synchronizes with |
java.lang.Object |
getCellEditorValue() |
AutoCompletingTextField |
getEditor() |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
replies the table cell editor
|
protected void |
initAutoCompletionListForKeys(TagEditorModel model,
TagModel currentTag)
initializes the auto completion list when the table cell editor starts
to edit the key of a tag.
|
protected void |
initAutoCompletionListForValues(java.lang.String forKey)
initializes the auto completion list when the cell editor starts to edit
a tag value.
|
void |
setAutoCompletionList(AutoCompletionList autoCompletionList)
sets the
AutoCompletionList this table cell editor synchronizes with |
void |
setAutoCompletionManager(AutoCompletionManager autocomplete) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
protected AutoCompletingTextField editor
protected TagModel currentTag
protected AutoCompletionManager autocomplete
protected AutoCompletionList autoCompletionList
public TagCellEditor()
protected void initAutoCompletionListForKeys(TagEditorModel model, TagModel currentTag)
model
- the tag editor modelcurrentTag
- the current tagprotected void initAutoCompletionListForValues(java.lang.String forKey)
forKey
- the keypublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public AutoCompletionList getAutoCompletionList()
AutoCompletionList
this table cell editor synchronizes withpublic void setAutoCompletionList(AutoCompletionList autoCompletionList)
AutoCompletionList
this table cell editor synchronizes withautoCompletionList
- the auto completion listpublic void setAutoCompletionManager(AutoCompletionManager autocomplete)
public void autoCompletionItemSelected(java.lang.String item)
public AutoCompletingTextField getEditor()