1 |
aa95aad0
|
Patrick Plitzner
|
/**
|
2 |
|
|
* Copyright (C) 2014 EDIT
|
3 |
|
|
* European Distributed Institute of Taxonomy
|
4 |
|
|
* http://www.e-taxonomy.eu
|
5 |
|
|
*
|
6 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
|
|
*/
|
9 |
|
|
package eu.etaxonomy.taxeditor.newWizard;
|
10 |
|
|
|
11 |
|
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
12 |
|
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
13 |
|
|
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
|
14 |
|
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
15 |
|
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
16 |
|
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
17 |
|
|
import eu.etaxonomy.taxeditor.ui.section.vocabulary.TermVocabularyDetailElement;
|
18 |
|
|
|
19 |
|
|
/**
|
20 |
|
|
* @author pplitzner
|
21 |
|
|
* @date 11.03.2014
|
22 |
|
|
*
|
23 |
|
|
*/
|
24 |
|
|
public class VocabularyWizardPage extends AbstractCdmEntityWizardPage<TermVocabulary> {
|
25 |
|
|
|
26 |
|
|
public VocabularyWizardPage(CdmFormFactory formFactory,
|
27 |
|
|
ConversationHolder conversation, TermVocabulary entity) {
|
28 |
|
|
super(formFactory, conversation, entity);
|
29 |
|
|
setTitle("General Vocabulary Data");
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
@Override
|
33 |
|
|
protected void checkComplete() {
|
34 |
|
|
setPageComplete(true);
|
35 |
|
|
}
|
36 |
|
|
|
37 |
|
|
@Override
|
38 |
|
|
public AbstractCdmDetailElement<TermVocabulary> createElement(ICdmFormElement rootElement) {
|
39 |
|
|
TermVocabularyDetailElement detailElement = formFactory.createTermVocabularyDetailElement(rootElement);
|
40 |
|
|
detailElement.setEntity(getEntity());
|
41 |
|
|
checkComplete();
|
42 |
|
|
return detailElement;
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
}
|