Class ReferringRelationsBrowserModel

java.lang.Object
javax.swing.AbstractListModel<Relation>
org.openstreetmap.josm.gui.dialogs.relation.ReferringRelationsBrowserModel
All Implemented Interfaces:
Serializable, ListModel<Relation>

This is the model for the ReferringRelationsBrowser.

It holds all referrers to a given relation

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • fireModelUpdate

      protected void fireModelUpdate()
    • setRelation

      public void setRelation(Relation relation)
      Sets the relation.
      Parameters:
      relation - the relation
    • getElementAt

      public Relation getElementAt(int index)
    • getSize

      public int getSize()
    • isReferringRelation

      protected boolean isReferringRelation(Relation parent)
    • populate

      public void populate(List<Relation> parents)
      Populates the model with parent referrers.
      Parameters:
      parents - parent referrers
    • 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()
      Determines if reloading the relation is possible/authorized.
      Returns:
      true if reloading the relation is possible/authorized
    • getRelation

      Returns the relation.
      Returns:
      the relation