Project

General

Profile

« Previous | Next » 

Revision b0ce5b17

Added by Patrick Plitzner over 10 years ago

merged trunk into branch

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/NamedAreaLevelDetailSection.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2009 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
*/
......
15 15
import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
16 16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17 17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19 19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
20 20

  
21 21
/**
......
37 37
	}
38 38

  
39 39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getDetailType()
40
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
41 41
	 */
42 42
	@Override
43
	protected DetailType getDetailType() {
44
		
45
		return DetailType.NAMED_AREA_LEVEL;
43
	public String getHeading() {
44
		return "Defined Term: "+ (getEntity() != null ? getEntity().getLabel() : "");
46 45
	}
47 46

  
48 47
	/* (non-Javadoc)
49
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
48
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
50 49
	 */
51 50
	@Override
52
	public String getHeading() {
53
		return "Defined Term: "+ (getEntity() != null ? getEntity().getLabel() : "");
51
	protected AbstractCdmDetailElement<NamedAreaLevel> createCdmDetailElement(AbstractCdmDetailSection<NamedAreaLevel> parentElement, int style) {
52
	    return formFactory.createNamedAreaLevelElement(parentElement);
54 53
	}
55 54

  
56 55
}

Also available in: Unified diff