Class ReferringRelationsBrowserModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<Relation> referrers  
      private Relation relation
      the relation
      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canReload()
      Determines if reloading the relation is possible/authorized.
      protected void fireModelUpdate()  
      Relation getElementAt​(int index)  
      Relation getRelation()
      Returns the relation.
      int getSize()  
      protected boolean isReferringRelation​(Relation parent)  
      void populate​(java.util.List<Relation> parents)
      Populates the model with parent referrers.
      void populate​(DataSet ds)
      Populates the browser with the list of referring relations in the DataSet ds.
      void setRelation​(Relation relation)
      Sets the 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
    • Method Detail

      • setRelation

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

        public void populate​(java.util.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