3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.group
;
13 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
14 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.compatibility
.ICdmFormElement
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.TextWithLabelElement
;
17 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
21 * @created Mar 9, 2011
24 public class GroupDetailElement
extends AbstractCdmDetailElement
<Group
> {
26 private TextWithLabelElement text_name
;
32 public GroupDetailElement(CdmFormFactory formFactory
,
33 ICdmFormElement formElement
) {
34 super(formFactory
, formElement
);
38 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#createControls(eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement, java.lang.Object, int)
41 protected void createControls(ICdmFormElement formElement
, Group entity
,
43 text_name
= formFactory
.createTextWithLabelElement(formElement
, "Name", entity
.getName(), style
);
47 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#handleEvent(java.lang.Object)
50 public void handleEvent(Object eventSource
) {
51 if(eventSource
== text_name
){
52 getEntity().setName(text_name
.getText());