public class ReferringRelationsBrowserModel extends AbstractListModel<Relation>
Modifier and Type | Field and Description |
---|---|
private List<Relation> |
referrers |
private Relation |
relation
the relation
|
listenerList
Constructor and Description |
---|
ReferringRelationsBrowserModel()
Constructs a new
ReferringRelationsBrowserModel . |
ReferringRelationsBrowserModel(Relation relation) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReload() |
protected void |
fireModelUpdate() |
Relation |
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(List<Relation> parents) |
void |
setRelation(Relation relation) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public ReferringRelationsBrowserModel()
ReferringRelationsBrowserModel
.public ReferringRelationsBrowserModel(Relation relation)
protected void fireModelUpdate()
public void setRelation(Relation relation)
public Relation getElementAt(int index)
public int getSize()
protected boolean isReferringRelation(Relation parent)
public void populate(DataSet ds)
DataSet
ds.ds
- the data setpublic boolean canReload()
public Relation getRelation()