org.openstreetmap.josm.gui.dialogs.relation
Class ReferringRelationsBrowserModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.openstreetmap.josm.gui.dialogs.relation.ReferringRelationsBrowserModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class ReferringRelationsBrowserModel
extends javax.swing.AbstractListModel

See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<Relation> referrers
           
private  Relation relation
          the relation
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ReferringRelationsBrowserModel()
           
ReferringRelationsBrowserModel(Relation relation)
           
 
Method Summary
 boolean canReload()
           
protected  void fireModelUpdate()
           
 Relation get(int index)
           
 java.lang.Object getElementAt(int index)
           
 Relation getRelation()
           
 int getSize()
           
protected  boolean isReferringRelation(Relation parent)
           
 void populate(DataSet ds)
          Populates the browser with the list of referring relations in the DataSet ds.
 void populate(java.util.List<Relation> parents)
           
 void setRelation(Relation relation)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relation

private Relation relation
the relation


referrers

private java.util.ArrayList<Relation> referrers
Constructor Detail

ReferringRelationsBrowserModel

public ReferringRelationsBrowserModel()

ReferringRelationsBrowserModel

public ReferringRelationsBrowserModel(Relation relation)
Method Detail

fireModelUpdate

protected void fireModelUpdate()

setRelation

public void setRelation(Relation relation)

getElementAt

public java.lang.Object getElementAt(int index)

getSize

public int getSize()

isReferringRelation

protected boolean isReferringRelation(Relation parent)

populate

public void populate(java.util.List<Relation> parents)

populate

public void populate(DataSet ds)
Populates the browser with the list of referring relations in the DataSet ds.

Parameters:
ds - the data set

canReload

public boolean canReload()

getRelation

public Relation getRelation()

get

public Relation get(int index)


JOSM