Class ValueEditor

All Implemented Interfaces:
ActionListener, FocusListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, CellEditor, ListDataListener, TableCellEditor

public class ValueEditor extends JComboBox<Object> implements TableCellEditor, FocusListener
JTable editor for cells representing CV values. This is a somewhat unconventional thing in several ways:
  • The returned value is not the String edited into the cell, but an Integer value. It is not clear how that arose, and it should probably be changed at some point.
  • This is also a focus listener. People are not used to having to hit return/enter to "set" their value in place, and are rather expecting that the value they typed will be in effect as soon as they type it. We use a focusListener to do that.
See Also: