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/name/AuthorshipDetailSection.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
*/
......
18 18
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
19 19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
20 20
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
21
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
21
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
22 22
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
23 23
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
24 24

  
......
46 46
			ISelectionProvider selectionProvider, int style) {
47 47
		super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
48 48
	}
49
	
49

  
50 50
	/**
51 51
	 * {@inheritDoc}
52 52
	 *
......
61 61
	}
62 62

  
63 63
	/** {@inheritDoc} */
64
	public void setTaxonBase(TaxonBase entity) {
64
	@Override
65
    public void setTaxonBase(TaxonBase entity) {
65 66
		this.taxonBase = entity;
66 67
		NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName());
67 68
		setEntity(name);
......
76 77
	public String getHeading() {
77 78
		return "Authorship";
78 79
	}
79
	
80
	/** {@inheritDoc} */
81
	@Override
82
	protected DetailType getDetailType() {
83
		return DetailType.AUTHORSHIP;
84
	}
85 80

  
86 81
	/* (non-Javadoc)
87 82
	 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
......
90 85
	public TaxonBase getTaxonBase() {
91 86
		return taxonBase;
92 87
	}
93
	
88

  
89
	/* (non-Javadoc)
90
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
91
	 */
92
	@Override
93
	protected AbstractCdmDetailElement<NonViralName> createCdmDetailElement(AbstractCdmDetailSection<NonViralName> parentElement, int style) {
94
	    return formFactory.createAuthorshipDetailElement(parentElement, style);
95
	}
96

  
94 97
}

Also available in: Unified diff