Project

General

Profile

« Previous | Next » 

Revision 23783f7a

Added by Niels Hoffmann about 12 years ago

Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/QuantitativeDataDetailElement.java
11 11
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
12 12
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
13 13
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType;
14
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
14 15
import eu.etaxonomy.taxeditor.ui.section.description.StatisticalMeasurementValueSection;
15 16

  
16 17
/**
......
45 46
		combo_mesaurementUnit = formFactory.createTermComboElement(MeasurementUnit.class, formElement, "Measurement Unit", entity.getUnit(), style);
46 47
		section_statisticalMeasurementValues = (StatisticalMeasurementValueSection) formFactory.createEntityDetailSection(EntityDetailType.STATISTICAL_MEASUREMENT_VALUE, getConversationHolder(), formElement, Section.TWISTIE | Section.EXPANDED);
47 48
		section_statisticalMeasurementValues.setEntity(entity);
48
		section_statisticalMeasurementValues.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1));
49
		section_statisticalMeasurementValues.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
49 50
	}
50 51
	
51 52
	/* (non-Javadoc)
......
54 55
	/** {@inheritDoc} */
55 56
	@Override
56 57
	public void handleEvent(Object eventSource) {
57
		
58
		if(eventSource == combo_mesaurementUnit){
59
			getEntity().setUnit(combo_mesaurementUnit.getSelection());
60
		}else if (eventSource == section_statisticalMeasurementValues){
61
			// FIXME
62
		}
58 63
	}
59 64

  
60 65
}

Also available in: Unified diff