Class ToggleButtonEditor

java.lang.Object
jmri.util.table.BasicCellEditor
jmri.util.table.ToggleButtonEditor
All Implemented Interfaces:
ActionListener, MouseListener, PropertyChangeListener, EventListener, CellEditor, TableCellEditor

Make a JToggleButton in a table cell function. Used eg. in OBlock tables for units

Works with ToggleButtonRenderer.

Adapted from ButtonRenderer

This also now implements and registers as a MouseListener, so you can change the mouse-event behavior by overriding the needed methods.