1
|
/**
|
2
|
* Copyright (C) 2007 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
|
|
10
|
package eu.etaxonomy.taxeditor.ui.section;
|
11
|
|
12
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
13
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
14
|
|
15
|
/**
|
16
|
* <p>EmptyElement class.</p>
|
17
|
*
|
18
|
* @author n.hoffmann
|
19
|
* @created Nov 5, 2009
|
20
|
* @version 1.0
|
21
|
*/
|
22
|
public class EmptyElement extends AbstractCdmDetailElement{
|
23
|
|
24
|
/**
|
25
|
* <p>Constructor for EmptyElement.</p>
|
26
|
*
|
27
|
* @param style a int.
|
28
|
* @param toolkit a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
29
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
|
30
|
* @param entity a {@link eu.etaxonomy.cdm.model.common.VersionableEntity} object.
|
31
|
*/
|
32
|
public EmptyElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String emptyText, int style) {
|
33
|
super(toolkit, parentElement);
|
34
|
if(emptyText!=null){
|
35
|
formFactory.createLabel(parentElement, emptyText);
|
36
|
}
|
37
|
}
|
38
|
|
39
|
@Override
|
40
|
protected void createControls(ICdmFormElement formElement, Object entity, int style) {
|
41
|
//empty
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
public void handleEvent(Object eventSource) {
|
46
|
// empty
|
47
|
}
|
48
|
|
49
|
@Override
|
50
|
public void setEntity(Object entity) {
|
51
|
// nothing
|
52
|
}
|
53
|
}
|