|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
org.openstreetmap.josm.gui.tagging.TagCellEditor
public class TagCellEditor
This is the table cell editor for the tag editor dialog.
Field Summary | |
---|---|
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
|
Fields inherited from class javax.swing.AbstractCellEditor |
---|
changeEvent, listenerList |
Constructor Summary | |
---|---|
TagCellEditor()
constructor |
Method Summary | |
---|---|
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)
|
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 |
---|
protected AutoCompletingTextField editor
protected TagModel currentTag
protected AutoCompletionManager autocomplete
protected AutoCompletionList autoCompletionList
Constructor Detail |
---|
public TagCellEditor()
Method Detail |
---|
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 with
public void setAutoCompletionList(AutoCompletionList autoCompletionList)
AutoCompletionList
this table cell editor synchronizes with
autoCompletionList
- the auto completion listpublic void setAutoCompletionManager(AutoCompletionManager autocomplete)
public void autoCompletionItemSelected(java.lang.String item)
public AutoCompletingTextField getEditor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |