Class ConflictDialog.ConflictListModel
- java.lang.Object
-
- org.openstreetmap.josm.gui.dialogs.ConflictDialog.ConflictListModel
-
- All Implemented Interfaces:
ListModel<OsmPrimitive>
- Enclosing class:
- ConflictDialog
class ConflictDialog.ConflictListModel extends Object implements ListModel<OsmPrimitive>
TheListModel
for conflicts
-
-
Field Summary
Fields Modifier and Type Field Description private CopyOnWriteArrayList<ListDataListener>
listeners
-
Constructor Summary
Constructors Constructor Description ConflictListModel()
Constructs a newConflictListModel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListDataListener(ListDataListener l)
protected void
fireContentChanged()
OsmPrimitive
get(int idx)
OsmPrimitive
getElementAt(int index)
int
getSize()
int
indexOf(OsmPrimitive my)
void
removeListDataListener(ListDataListener l)
-
-
-
Field Detail
-
listeners
private final CopyOnWriteArrayList<ListDataListener> listeners
-
-
Constructor Detail
-
ConflictListModel
ConflictListModel()
Constructs a newConflictListModel
.
-
-
Method Detail
-
addListDataListener
public void addListDataListener(ListDataListener l)
- Specified by:
addListDataListener
in interfaceListModel<OsmPrimitive>
-
removeListDataListener
public void removeListDataListener(ListDataListener l)
- Specified by:
removeListDataListener
in interfaceListModel<OsmPrimitive>
-
fireContentChanged
protected void fireContentChanged()
-
getElementAt
public OsmPrimitive getElementAt(int index)
- Specified by:
getElementAt
in interfaceListModel<OsmPrimitive>
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceListModel<OsmPrimitive>
-
indexOf
public int indexOf(OsmPrimitive my)
-
get
public OsmPrimitive get(int idx)
-
-