Revision 6809e6bd
Added by Cherian Mathew almost 9 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/presenter/ConceptRelationshipPresenter.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
19 | 19 |
import eu.etaxonomy.cdm.vaadin.container.IdUuidName; |
20 | 20 |
import eu.etaxonomy.cdm.vaadin.jscomponent.D3ConceptRelationshipTree; |
21 |
import eu.etaxonomy.cdm.vaadin.jscomponent.D3ConceptRelationshipTree.Direction; |
|
21 | 22 |
import eu.etaxonomy.cdm.vaadin.util.CdmSpringContextHelper; |
22 | 23 |
import eu.etaxonomy.cdm.vaadin.view.IConceptRelationshipComponentListener; |
23 | 24 |
|
... | ... | |
43 | 44 |
} |
44 | 45 |
|
45 | 46 |
@Override |
46 |
public void refreshRelationshipView(IdUuidName taxonIun) throws JSONException { |
|
47 |
public void refreshRelationshipView(IdUuidName taxonIun, Direction direction) throws JSONException {
|
|
47 | 48 |
TransactionStatus tx = app.startTransaction(); |
48 | 49 |
Taxon taxon = CdmBase.deproxy(taxonService.load(taxonIun.getUuid()), Taxon.class); |
49 |
crTree.update(taxon); |
|
50 |
crTree.update(taxon, direction);
|
|
50 | 51 |
app.commitTransaction(tx); |
51 | 52 |
} |
52 | 53 |
|
Also available in: Unified diff
D3ConceptRelationshipTree, ConceptRelationshipComposite, ConceptRelationshipPresenter, ConceptRelationshipView, IConceptRelationshipComponentListener : added directional variable to display cr tree in both direction
d3.conceptrelationshiptree_connector.js : updated to handle bi-directional display
D3CTree, ConceptRelationshipPresenterTest, d3ctree_connector.js : testing bi-directional display