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