Class AbstractListMergeModel<T extends PrimitiveId,C extends ConflictResolveCommand>

java.lang.Object
org.openstreetmap.josm.gui.util.ChangeNotifier
org.openstreetmap.josm.gui.conflict.pair.AbstractListMergeModel<T,C>
Type Parameters:
T - the type of the list entries
C - the type of conflict resolution command
Direct Known Subclasses:
NodeListMergeModel, RelationMemberListMergeModel

public abstract class AbstractListMergeModel<T extends PrimitiveId,C extends ConflictResolveCommand> extends ChangeNotifier
ListMergeModel is a model for interactively comparing and merging two list of entries of type T. It maintains three lists of entries of type T:
  1. the list of my entries
  2. the list of their entries
  3. the list of merged entries
A ListMergeModel is a factory for three TableModels and three ListSelectionModels:
  1. the table model and the list selection for for a JTable which shows my entries. See getMyTableModel() and getMySelectionModel()
  2. dito for their entries and merged entries
A ListMergeModel can be ''frozen''. If it's frozen, it doesn't accept additional merge decisions. PropertyChangeListeners can register for property value changes of FROZEN_PROP.

ListMergeModel is an abstract class. Three methods have to be implemented by subclasses:

A ListMergeModel is used in combination with a AbstractListMerger.
See Also: