Project

General

Profile

Revision 92b52ec2

ID92b52ec25930c2b89aa16b1cf82d3440fc25405f
Parent 30eca968
Child cf7b2458

Added by Katja Luther about 1 year ago

add time period to description element details

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/AbstractDetailedDescriptionDetailElement.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.ui.section.description.detail;
11 11

  
12
import org.eclipse.swt.SWT;
13

  
12 14
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
13 15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
14 16
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17
import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement;
15 18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
16 19

  
17 20
/**
......
23 26
 */
24 27
public abstract class AbstractDetailedDescriptionDetailElement<T extends DescriptionElementBase> extends AbstractCdmDetailElement<T>{
25 28

  
29
    TimePeriodElement timePeriod;
30

  
26 31
	/**
27 32
	 * <p>Constructor for AbstractDetailedDescriptionDetailElement.</p>
28 33
	 *
......
37 42
		super(formFactory, formElement);
38 43
		setEntity(entity);
39 44
	}
45

  
46
	@Override
47
    protected void createControls(ICdmFormElement formElement, DescriptionElementBase entity,
48
            int style) {
49
	    timePeriod = formFactory.createTimePeriodElement(this, "Time period", entity.getTimeperiod(), SWT.WRAP);
50

  
51
    }
40 52
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/CategoricalDataDetailElement.java
40 40
	@Override
41 41
	protected void createControls(ICdmFormElement formElement,
42 42
			CategoricalData entity, int style) {
43
	    super.createControls(formElement, entity, style);
43 44
		checkbox_orderRelevant = formFactory.createCheckbox(formElement, "Order Relevant", entity.getOrderRelevant(), style);
44 45
		section_stateData = formFactory.createStateDataSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
45 46
		section_stateData.setEntity(entity);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/IndividualsAssociationDetailElement.java
43 43
	@Override
44 44
	protected void createControls(ICdmFormElement formElement,
45 45
			IndividualsAssociation entity, int style) {
46
	    super.createControls(formElement, entity, style);
46 47
		selection_derivedUnit = formFactory
47 48
				.createSelectionElement(SpecimenOrObservationBase.class,
48 49
						//getConversationHolder(),
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/TextDataDetailElement.java
47 47
	@Override
48 48
	protected void createControls(ICdmFormElement formElement, TextData entity,
49 49
			int style) {
50
	    super.createControls(formElement, entity, style);
50 51
		multilanguageTextElement = formFactory.createMultiLanguageTextElement(this, null, entity.getMultilanguageText(), 200, SWT.WRAP);
51 52
		//richtextTestElement = formFactory.createRichTextLabelElement(this, null, entity.getMultilanguageText().get(Language.DEFAULT()).getText(), 200, SWT.WRAP);
52 53
	}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)