org.openstreetmap.josm.gui.dialogs.relation
Class MemberRoleCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by 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

See Also:
Serialized Form

Field Summary
private  AutoCompletionList autoCompletionList
          user input is matched against this list of auto completion items
private  DataSet ds
           
private  AutoCompletingTextField editor
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
MemberRoleCellEditor(DataSet ds)
          constructor
 
Method Summary
 void cancelCellEditing()
           
 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)
          replies the table cell editor
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell
 
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, isCellEditable, removeCellEditorListener, shouldSelectCell
 

Field Detail

editor

private AutoCompletingTextField editor

ds

private DataSet ds

autoCompletionList

private AutoCompletionList autoCompletionList
user input is matched against this list of auto completion items

Constructor Detail

MemberRoleCellEditor

public MemberRoleCellEditor(DataSet ds)
constructor

Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
replies the table cell editor

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface javax.swing.CellEditor
Overrides:
cancelCellEditing in class javax.swing.AbstractCellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor
Overrides:
stopCellEditing in class javax.swing.AbstractCellEditor

getEditor

public AutoCompletingTextField getEditor()
Returns the edit field for this cell editor.



JOSM