public class MultiValueCellEditor extends AbstractCellEditor implements TableCellEditor
MultiValueCellEditor.NavigationListeners registred with this editor.
You should register the parent table using this editor as MultiValueCellEditor.NavigationListener.
KeyEvent.VK_ENTER and KeyEvent.VK_TAB trigger a MultiValueCellEditor.NavigationListener.gotoNextDecision().| Modifier and Type | Class and Description |
|---|---|
private static class |
MultiValueCellEditor.EditorCellRenderer
The cell renderer used in the combo box
|
static interface |
MultiValueCellEditor.NavigationListener |
| Modifier and Type | Field and Description |
|---|---|
private JosmComboBox |
editor
the combo box used as editor
|
private DefaultComboBoxModel |
editorModel |
private CopyOnWriteArrayList<MultiValueCellEditor.NavigationListener> |
listeners |
changeEvent, listenerList| Constructor and Description |
|---|
MultiValueCellEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNavigationListeners(MultiValueCellEditor.NavigationListener listener) |
protected void |
fireGotoNextDecision() |
protected void |
fireGotoPreviousDecision() |
Object |
getCellEditorValue() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
protected void |
initEditor(MultiValueResolutionDecision decision) |
void |
removeavigationListeners(MultiValueCellEditor.NavigationListener listener) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingprivate JosmComboBox editor
private DefaultComboBoxModel editorModel
private CopyOnWriteArrayList<MultiValueCellEditor.NavigationListener> listeners
public MultiValueCellEditor()
public void addNavigationListeners(MultiValueCellEditor.NavigationListener listener)
public void removeavigationListeners(MultiValueCellEditor.NavigationListener listener)
protected void fireGotoNextDecision()
protected void fireGotoPreviousDecision()
protected void initEditor(MultiValueResolutionDecision decision)
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditor