public class ChangesetInSelectionListModel extends ChangesetListModel implements SelectionChangedListener, MainLayerManager.ActiveLayerChangeListener
Constructor and Description |
---|
ChangesetInSelectionListModel(javax.swing.DefaultListSelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
void |
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.
|
void |
selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
Informs the listener that the selection in the dataset has changed.
|
changesetCacheUpdated, getElementAt, getSelectedChangesetIds, getSelectedChangesets, getSelectedOpenChangesets, getSize, hasSelectedOpenChangesets, initFromChangesetIds, initFromDataSet, initFromPrimitives, setChangesets, setSelectedChangesets, sort
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
public ChangesetInSelectionListModel(javax.swing.DefaultListSelectionModel selectionModel)
public void selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
SelectionChangedListener
selectionChanged
in interface SelectionChangedListener
newSelection
- The new selection.public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListener
You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
activeOrEditLayerChanged
in interface MainLayerManager.ActiveLayerChangeListener
e
- The change event.