Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 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 |
*/ |
... | ... | |
17 | 17 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
18 | 18 |
import eu.etaxonomy.cdm.model.media.Media; |
19 | 19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
|
21 | 20 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
|
22 | 22 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.section.media.MediaElement; |
24 | 24 |
|
... | ... | |
47 | 47 |
ISelectionProvider selectionProvider, int style) { |
48 | 48 |
super(formFactory, conversation, parentElement, selectionProvider, style); |
49 | 49 |
} |
50 |
|
|
51 |
/* (non-Javadoc) |
|
52 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType() |
|
53 |
*/ |
|
54 |
/** {@inheritDoc} */ |
|
55 |
@Override |
|
56 |
protected DetailType getDetailType() { |
|
57 |
return null; |
|
58 |
} |
|
59 |
|
|
50 |
|
|
60 | 51 |
/** {@inheritDoc} */ |
61 | 52 |
@Override |
62 | 53 |
protected void createControls(AbstractCdmDetailSection formElement, |
... | ... | |
64 | 55 |
TableWrapLayout layout = (TableWrapLayout) getLayoutComposite().getLayout(); |
65 | 56 |
layout.topMargin = 10; |
66 | 57 |
layout.numColumns = 2; |
67 |
|
|
58 |
|
|
68 | 59 |
getLayoutComposite().setLayout(layout); |
69 |
|
|
70 |
|
|
60 |
|
|
61 |
|
|
71 | 62 |
} |
72 |
|
|
63 |
|
|
73 | 64 |
/** |
74 | 65 |
* <p>setEntity</p> |
75 | 66 |
* |
76 | 67 |
* @param entity a {@link eu.etaxonomy.cdm.model.media.Media} object. |
77 | 68 |
*/ |
78 |
public void setEntity(Media entity) { |
|
69 |
@Override |
|
70 |
public void setEntity(Media entity) { |
|
79 | 71 |
if(element_media != null){ |
80 | 72 |
this.removeElements(); |
81 | 73 |
} |
... | ... | |
94 | 86 |
public String getHeading() { |
95 | 87 |
return "Image"; |
96 | 88 |
} |
89 |
|
|
90 |
/* (non-Javadoc) |
|
91 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
92 |
*/ |
|
93 |
@Override |
|
94 |
protected AbstractCdmDetailElement<Media> createCdmDetailElement(AbstractCdmDetailSection<Media> parentElement, int style) { |
|
95 |
return null; |
|
96 |
} |
|
97 | 97 |
} |
Also available in: Unified diff
merged trunk into branch