2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
;
12 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
13 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
16 * <p>EmptyElement class.</p>
19 * @created Nov 5, 2009
22 public class EmptyElement
extends AbstractCdmDetailElement
{
25 * <p>Constructor for EmptyElement.</p>
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.
32 public EmptyElement(CdmFormFactory toolkit
, ICdmFormElement parentElement
, String emptyText
, int style
) {
33 super(toolkit
, parentElement
);
35 formFactory
.createLabel(parentElement
, emptyText
);
40 protected void createControls(ICdmFormElement formElement
, Object entity
, int style
) {
45 public void handleEvent(Object eventSource
) {
50 public void setEntity(Object entity
) {