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/taxon/TaxonBaseDetailSection.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2007 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
*/
......
17 17
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
18 18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19 19
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
20
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
21 21
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
22 22
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
23 23

  
......
50 50
	 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
51 51
	 */
52 52
	/** {@inheritDoc} */
53
	public void setTaxonBase(TaxonBase entity) {
53
	@Override
54
    public void setTaxonBase(TaxonBase entity) {
54 55
		this.taxonBase = entity;
55
		TaxonBase taxonBase = (TaxonBase) HibernateProxyHelper.deproxy(entity); 
56
		TaxonBase taxonBase = (TaxonBase) HibernateProxyHelper.deproxy(entity);
56 57
		setEntity(taxonBase);
57 58
	}
58 59

  
......
62 63
		return getEntity() != null ? getEntity().getClass().getSimpleName() : "TaxonBase";
63 64
	}
64 65

  
65
	/** {@inheritDoc} */
66
	@Override
67
	protected DetailType getDetailType() {
68
		return DetailType.TAXONBASE;
69
	}
70
	
71 66
	/* (non-Javadoc)
72 67
	 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
73 68
	 */
......
76 71
		return taxonBase;
77 72
	}
78 73

  
74
	/* (non-Javadoc)
75
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
76
	 */
77
	@Override
78
	protected AbstractCdmDetailElement<TaxonBase> createCdmDetailElement(AbstractCdmDetailSection<TaxonBase> parentElement, int style) {
79
	    return formFactory.createTaxonBaseDetailElement(parentElement, style);
80
	}
81

  
79 82
}

Also available in: Unified diff