public class ReferringRelationsBrowserModel extends javax.swing.AbstractListModel<Relation>
ReferringRelationsBrowser.
It holds all referrers to a given relation
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Relation> |
referrers |
private Relation |
relation
the relation
|
| Constructor and Description |
|---|
ReferringRelationsBrowserModel(Relation relation)
Constructs a new
ReferringRelationsBrowserModel. |
| Modifier and Type | Method and 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(DataSet ds)
Populates the browser with the list of referring relations in the
DataSet ds. |
void |
populate(java.util.List<Relation> parents)
Populates the model with parent referrers.
|
void |
setRelation(Relation relation)
Sets the relation.
|
public ReferringRelationsBrowserModel(Relation relation)
ReferringRelationsBrowserModel.relation - relationprotected void fireModelUpdate()
public void setRelation(Relation relation)
relation - the relationpublic Relation getElementAt(int index)
public int getSize()
protected boolean isReferringRelation(Relation parent)
public void populate(java.util.List<Relation> parents)
parents - parent referrerspublic void populate(DataSet ds)
DataSet ds.ds - the data setpublic boolean canReload()
true if reloading the relation is possible/authorizedpublic Relation getRelation()