Project

General

Profile

« Previous | Next » 

Revision 139902da

Added by Patrick Plitzner over 10 years ago

  • completely removed DetailType enum and all its uses

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/NamedAreaDetailSection.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.NamedArea;
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
/**
......
40 40
	}
41 41

  
42 42
	/* (non-Javadoc)
43
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getDetailType()
43
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
44 44
	 */
45 45
	@Override
46
	protected DetailType getDetailType() {
47
		
48
		return DetailType.NAMED_AREA;
46
	public String getHeading() {
47

  
48
		return "Defined Term: "+ (getEntity() != null ? getEntity().getLabel() : "");
49 49
	}
50 50

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

  
60 59
}

Also available in: Unified diff