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/userecords/UseRecordDetailSection.java
1 1
/**
2 2
* Copyright (C) 2011 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
14 14
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
15 15
import eu.etaxonomy.taxeditor.store.CdmStore;
16 16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
18 17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19 19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
20 20

  
21 21
/**
22 22
 * UseRecordDetailSection Class
23
 * @author a.theys	
23
 * @author a.theys
24 24
 * @created mar 13, 2012
25 25
 * @version 1.0
26 26
 */
27 27
public class UseRecordDetailSection extends AbstractCdmDetailSection<DescriptionElementBase> {
28
	
28

  
29 29
	/**Constructor for class UseRecordDetailSection
30
	 * 
30
	 *
31 31
	 * @param cdmFormFactory
32 32
	 * @param conversation
33 33
	 * @param parentElement
......
38 38
			ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) {
39 39
		super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
40 40
	}
41
	
42
	/** {@inheritDoc} */
43
	@Override
44
	protected DetailType getDetailType() {
45
		return DetailType.USE_RECORD;
46
	}
47
	
41

  
48 42
	/** {@inheritDoc} */
49 43
	@Override
50 44
	public String getHeading() {
51 45
		return "Use Record";
52 46
	}
53
	
47

  
54 48
	/** {@inheritDoc} */
55 49
	@Override
56 50
	protected void setSectionTitle() {
57 51
		this.setText(getHeading() + ": " + getEntity().getFeature().getLabel(CdmStore.getDefaultLanguage()));
58 52
		setTextClient(createToolbar());
59 53
	}
54

  
55
	/* (non-Javadoc)
56
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
57
	 */
58
	@Override
59
	protected AbstractCdmDetailElement createCdmDetailElement(AbstractCdmDetailSection<DescriptionElementBase> parentElement, int style) {
60
	    return formFactory.createUseRecordDetailElement(parentElement);
61
	}
62

  
60 63
}

Also available in: Unified diff