Project

General

Profile

Revision e229bf65

IDe229bf652080bf883f36bd0d9ccba0bed1cf0dba
Parent a160d195
Child 596ef595

Added by Katja Luther almost 2 years ago

adapt taxeditor to changes in DerivedUnitFacade

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/AbstractSpecimenOrObservationDetailElement.java
3 3
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
4 4
import eu.etaxonomy.cdm.model.common.DefinedTerm;
5 5
import eu.etaxonomy.cdm.model.common.TermType;
6

  
7 6
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
8 7
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
9 8
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
10 9
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
11 10

  
12 11
public abstract class AbstractSpecimenOrObservationDetailElement extends AbstractCdmDetailElement<DerivedUnitFacade> {
13
	
12

  
14 13
	private TermComboElement<DefinedTerm> combo_kindOfUnit;
15 14

  
16 15
	private TermComboElement<DefinedTerm> combo_lifeStage;
......
26 25
	@Override
27 26
	protected void createControls(ICdmFormElement formElement,
28 27
			DerivedUnitFacade entity, int style) {
29
		
30
		combo_kindOfUnit= formFactory.createDefinedTermComboElement(TermType.KindOfUnit, formElement, "Kind Of Unit", entity.getKindOfUnit(), style);
28

  
29
		combo_kindOfUnit= formFactory.createDefinedTermComboElement(TermType.KindOfUnit, formElement, "Kind Of Unit", entity.getDerivedUnitKindOfUnit(), style);
31 30
		combo_lifeStage = formFactory.createDefinedTermComboElement(TermType.Stage, formElement, "Life Stage", entity.getLifeStage(), style);
32 31
		combo_sex = formFactory.createDefinedTermComboElement(TermType.Sex, formElement, "Sex", entity.getSex(),style);
33 32
	}
34
	
33

  
35 34
	/** {@inheritDoc} */
36 35
	@Override
37 36
	public void handleEvent(Object eventSource) {
38 37
		if(eventSource == combo_kindOfUnit){
39
		    getEntity().setKindOfUnit(combo_kindOfUnit.getSelection());
38
		    getEntity().setDerivedUnitKindOfUnit(combo_kindOfUnit.getSelection());
40 39
		}
41 40
		else if(eventSource == combo_lifeStage){
42 41
			getEntity().setLifeStage(combo_lifeStage.getSelection());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)