Class VersionTable.RadioButtonEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- org.openstreetmap.josm.gui.history.VersionTable.RadioButtonEditor
-
- All Implemented Interfaces:
ItemListener
,Serializable
,EventListener
,CellEditor
,TableCellEditor
,TreeCellEditor
- Enclosing class:
- VersionTable
public static class VersionTable.RadioButtonEditor extends DefaultCellEditor implements ItemListener
Editor for history radio buttons in columns A and B.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private JRadioButton
btn
-
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description RadioButtonEditor()
Constructs a newRadioButtonEditor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getCellEditorValue()
Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
void
itemStateChanged(ItemEvent e)
-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
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, removeCellEditorListener
-
-
-
-
Field Detail
-
btn
private final JRadioButton btn
-
-
Constructor Detail
-
RadioButtonEditor
public RadioButtonEditor()
Constructs a newRadioButtonEditor
.
-
-
Method Detail
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
- Overrides:
getTableCellEditorComponent
in classDefaultCellEditor
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
- Overrides:
getCellEditorValue
in classDefaultCellEditor
-
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Specified by:
itemStateChanged
in interfaceItemListener
-
-