public class MultiValueCellEditor extends AbstractCellEditor implements TableCellEditor
MultiValueCellEditor.NavigationListener
s 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, stopCellEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
private 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 TableCellEditor
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor