Class ColumnComboBoxModel

java.lang.Object
javax.swing.AbstractListModel<TableColumn>
uk.ac.starlink.topcat.ColumnComboBoxModel
All Implemented Interfaces:
Serializable, EventListener, ComboBoxModel<TableColumn>, TableColumnModelListener, ListModel<TableColumn>
Direct Known Subclasses:
RestrictedColumnComboBoxModel

public class ColumnComboBoxModel extends AbstractListModel<TableColumn> implements TableColumnModelListener, ComboBoxModel<TableColumn>
Adaptor class which turns a TableColumnModel into a ComboBoxModel. This model is designed to reflect the contents of a column model rather than the other way around, so in general you wouldn't want to add a ListDataListener to this model, you'd add it to the underlying column model.

Selections in the column model are not reflected by selections in this model, but columns added/moved/removed are.

Author:
Mark Taylor (Starlink)
See Also: