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, sortadd, 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, trimToSizepublic ChangesetInSelectionListModel(javax.swing.DefaultListSelectionModel selectionModel)
public void selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
SelectionChangedListenerselectionChanged in interface SelectionChangedListenernewSelection - The new selection.public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListenerYou 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.ActiveLayerChangeListenere - The change event.