Class VersionTable.RadioButtonEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- org.openstreetmap.josm.gui.history.VersionTable.RadioButtonEditor
-
- All Implemented Interfaces:
java.awt.event.ItemListener,java.io.Serializable,java.util.EventListener,javax.swing.CellEditor,javax.swing.table.TableCellEditor,javax.swing.tree.TreeCellEditor
- Enclosing class:
- VersionTable
public static class VersionTable.RadioButtonEditor extends javax.swing.DefaultCellEditor implements java.awt.event.ItemListener
Editor for history radio buttons in columns A and B.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JRadioButtonbtn
-
Constructor Summary
Constructors Constructor Description RadioButtonEditor()Constructs a newRadioButtonEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetCellEditorValue()java.awt.ComponentgetTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)voiditemStateChanged(java.awt.event.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
-
-
-
-
Field Detail
-
btn
private final javax.swing.JRadioButton btn
-
-
Constructor Detail
-
RadioButtonEditor
public RadioButtonEditor()
Constructs a newRadioButtonEditor.
-
-
Method Detail
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponentin interfacejavax.swing.table.TableCellEditor- Overrides:
getTableCellEditorComponentin classjavax.swing.DefaultCellEditor
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfacejavax.swing.CellEditor- Overrides:
getCellEditorValuein classjavax.swing.DefaultCellEditor
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener
-
-