Project

General

Profile

Download (1.26 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
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.ui.section.occurrence;
10

    
11
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
12
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
13
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
14
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
15

    
16
/**
17
 * @author pplitzner
18
 * @date 27.01.2014
19
 *
20
 */
21
public class EmptySection extends AbstractCdmDetailSection<Object> {
22

    
23
    public EmptySection(CdmFormFactory formFactory, ICdmFormElement parentElement, int style) {
24
        super(formFactory, null, parentElement, null, style);
25
    }
26

    
27
    /** {@inheritDoc} */
28
    @Override
29
    public String getHeading() {
30
        return "No view implemented for this element";
31
    }
32

    
33
    @Override
34
    protected AbstractCdmDetailElement<Object> createCdmDetailElement(AbstractCdmDetailSection<Object> parentElement, int style) {
35
        return formFactory.createEmptyElement(parentElement, null);
36
    }
37

    
38
    @Override
39
    public void setEntity(Object entity) {
40
        //nothing
41
    }
42
}
(19-19/35)