Class ChangesetInSelectionListModel
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultListModel<Changeset>
-
- org.openstreetmap.josm.gui.dialogs.changeset.ChangesetListModel
-
- org.openstreetmap.josm.gui.dialogs.changeset.ChangesetInSelectionListModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ListModel<Changeset>
,ChangesetCacheListener
,DataSelectionListener
public class ChangesetInSelectionListModel extends ChangesetListModel implements DataSelectionListener
A table of changesets that displays the ones that are used by the primitives in the current selection.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.osm.DataSelectionListener
DataSelectionListener.AbstractSelectionEvent, DataSelectionListener.SelectionAddEvent, DataSelectionListener.SelectionChangeEvent, DataSelectionListener.SelectionRemoveEvent, DataSelectionListener.SelectionReplaceEvent, DataSelectionListener.SelectionToggleEvent
-
-
Constructor Summary
Constructors Constructor Description ChangesetInSelectionListModel(javax.swing.DefaultListSelectionModel selectionModel)
Create a newChangesetInSelectionListModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Called whenever the selection is changed.-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.changeset.ChangesetListModel
changesetCacheUpdated, getElementAt, getSelectedChangesetIds, getSelectedChangesets, getSelectedOpenChangesets, getSize, hasSelectedOpenChangesets, initFromChangesetIds, initFromDataSet, initFromPrimitives, setChangesets, setSelectedChangesets, sort
-
Methods inherited from class javax.swing.DefaultListModel
add, addAll, addAll, 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
-
-
-
-
Constructor Detail
-
ChangesetInSelectionListModel
public ChangesetInSelectionListModel(javax.swing.DefaultListSelectionModel selectionModel)
Create a newChangesetInSelectionListModel
- Parameters:
selectionModel
- The model
-
-
Method Detail
-
selectionChanged
public void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Description copied from interface:DataSelectionListener
Called whenever the selection is changed. You get notified about the new selection, the elements that were added and removed and the layer that triggered the event.- Specified by:
selectionChanged
in interfaceDataSelectionListener
- Parameters:
event
- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
-