Revision 5200fbd3
Added by Cherian Mathew about 9 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/ConceptRelationshipComposite.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
private IdUuidName fromTaxonIun; |
62 | 62 |
|
63 |
private static final String CREATE_NEW_CR_TITLE = "Create New Concept Relationship";
|
|
63 |
public static final String CREATE_NEW_CR_TITLE = "Create New Concept Relationship";
|
|
64 | 64 |
|
65 | 65 |
/** |
66 | 66 |
* The constructor should first build the main layout, set the |
... | ... | |
100 | 100 |
|
101 | 101 |
@Override |
102 | 102 |
public void buttonClick(ClickEvent event) { |
103 |
showEditConceptRelationshipWindow(CREATE_NEW_CR_TITLE); |
|
103 |
showEditConceptRelationshipWindow(CREATE_NEW_CR_TITLE, fromTaxonIun, null, null);
|
|
104 | 104 |
} |
105 | 105 |
}); |
106 | 106 |
} |
107 | 107 |
|
108 |
private void showEditConceptRelationshipWindow(String windowTitle) { |
|
108 |
public static void showEditConceptRelationshipWindow(String windowTitle, |
|
109 |
IdUuidName fromTaxonIun, |
|
110 |
IdUuidName taxonRTypeIun, |
|
111 |
IdUuidName toTaxonIun) { |
|
109 | 112 |
Window dialog = new Window(windowTitle); |
110 | 113 |
dialog.setModal(false); |
111 | 114 |
dialog.setClosable(false); |
112 | 115 |
dialog.setResizable(false); |
113 | 116 |
UI.getCurrent().addWindow(dialog); |
114 | 117 |
|
115 |
EditConceptRelationshipComposite ecrc = new EditConceptRelationshipComposite(dialog,fromTaxonIun, null, null);
|
|
118 |
EditConceptRelationshipComposite ecrc = new EditConceptRelationshipComposite(dialog,fromTaxonIun, taxonRTypeIun, toTaxonIun);
|
|
116 | 119 |
dialog.setContent(ecrc); |
117 | 120 |
} |
118 | 121 |
|
Also available in: Unified diff
ConceptRelationshipComposite, StatusComposite : implemented drag drop for new concept relationship
CdmDataChangeService, SelectionService : making sure events list is cleared after fire