Project

General

Profile

« Previous | Next » 

Revision 0caafa75

Added by Andreas Müller over 1 year ago

ref #10186 further remove ConversationHolder and cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/InstitutionDetailElement.java
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
 */
9

  
10 9
package eu.etaxonomy.taxeditor.ui.section.agent;
11 10

  
12 11
import eu.etaxonomy.cdm.model.agent.Institution;
......
19 18
/**
20 19
 * @author n.hoffmann
21 20
 * @created Dec 15, 2010
22
 * @version 1.0
23 21
 */
24 22
public class InstitutionDetailElement extends
25 23
		AbstractCdmDetailElement<Institution> {
......
32 30

  
33 31
	private EntitySelectionElement<Institution> selection_partOfInstitution;
34 32

  
35
	/**
36
	 * @param formFactory
37
	 * @param formElement
38
	 */
39 33
	public InstitutionDetailElement(CdmFormFactory formFactory,
40 34
			ICdmFormElement formElement) {
41 35
		super(formFactory, formElement);
42 36
	}
43 37

  
44
	/*
45
	 * (non-Javadoc)
46
	 *
47
	 * @see
48
	 * eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement#createControls
49
	 * (eu.etaxonomy.taxeditor.forms.ICdmFormElement, java.lang.Object, int)
50
	 */
51 38
	@Override
52 39
	protected void createControls(ICdmFormElement formElement,
53 40
			Institution entity, int style) {
......
60 47
		// section_institutionTypes
61 48
		selection_partOfInstitution = formFactory
62 49
				.createSelectionElement(Institution.class,
63
						//getConversationHolder(),
64 50
				        formElement, "Is Part Of",
65 51
						entity.getIsPartOf(),
66 52
						EntitySelectionElement.EDITABLE | EntitySelectionElement.SELECTABLE | EntitySelectionElement.DELETABLE,
67 53
						style);
68 54
	}
69 55

  
70
	/*
71
	 * (non-Javadoc)
72
	 *
73
	 * @see
74
	 * eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement#handleEvent(java
75
	 * .lang.Object)
76
	 */
77 56
	@Override
78 57
	public void handleEvent(Object eventSource) {
79 58
		if (eventSource == text_name) {
......
84 63
			getEntity().setIsPartOf(selection_partOfInstitution.getSelection());
85 64
		}
86 65
	}
87

  
88
}
66
}

Also available in: Unified diff