Revision ac12d86b
Added by Patrick Plitzner almost 11 years ago
- added java doc
- formatted code
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/DefinedTermDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2009 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
15 | 15 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 16 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
|
19 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
19 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
21 | 21 |
|
22 | 22 |
/** |
... | ... | |
28 | 28 |
|
29 | 29 |
/** |
30 | 30 |
* @param formFactory |
31 |
* @param definedTermClass
|
|
31 |
* @param definedTermClass |
|
32 | 32 |
* @param conversation |
33 | 33 |
* @param parentElement |
34 | 34 |
* @param selectionProvider |
... | ... | |
47 | 47 |
protected DetailType getDetailType() { |
48 | 48 |
return null; |
49 | 49 |
} |
50 |
|
|
51 |
@Override |
|
52 |
protected void createControlsByType( |
|
53 |
AbstractCdmDetailSection<T> abstractCdmDetailSection, |
|
54 |
Class<T> clazz, int style) { |
|
55 |
TableWrapLayout layout = (TableWrapLayout) getLayoutComposite() |
|
56 |
.getLayout(); |
|
57 |
layout.topMargin = 10; |
|
58 |
layout.numColumns = 2; |
|
59 | 50 |
|
60 |
getLayoutComposite().setLayout(layout); |
|
61 |
detailElement = formFactory.createDefinedTermDetailElement(clazz, |
|
62 |
abstractCdmDetailSection, style); |
|
63 |
} |
|
51 |
@Override |
|
52 |
protected void createControlsByType(AbstractCdmDetailSection<T> abstractCdmDetailSection, Class<T> clazz, int style) { |
|
53 |
TableWrapLayout layout = (TableWrapLayout) getLayoutComposite().getLayout(); |
|
54 |
layout.topMargin = 10; |
|
55 |
layout.numColumns = 2; |
|
56 |
|
|
57 |
getLayoutComposite().setLayout(layout); |
|
58 |
detailElement = formFactory.createDefinedTermDetailElement(clazz, abstractCdmDetailSection, style); |
|
59 |
} |
|
64 | 60 |
|
65 | 61 |
/* (non-Javadoc) |
66 | 62 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading() |
Also available in: Unified diff