Project

General

Profile

Revision e8a69e3a

IDe8a69e3a3ed9a470ae9f440631eb4cc2bbba4658
Parent a2cc19af
Child e88202b9

Added by Katja Luther over 2 years ago

fix #3746: move time period down in details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/AbstractDetailedDescriptionDetailElement.java
43 43
		setEntity(entity);
44 44
	}
45 45

  
46
	@Override
47
    protected void createControls(ICdmFormElement formElement, DescriptionElementBase entity,
46

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

  
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 44
		checkbox_orderRelevant = formFactory.createCheckbox(formElement, "Order Relevant", entity.getOrderRelevant(), style);
45 45
		section_stateData = formFactory.createStateDataSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
46 46
		section_stateData.setEntity(entity);
47 47
		section_stateData.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
48
		createTimePeriod(formElement, entity, style);
48 49
	}
49 50

  
50 51
	/* (non-Javadoc)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/CommonNameDetailElement.java
52 52
	@Override
53 53
	protected void createControls(ICdmFormElement formElement,
54 54
			CommonTaxonName entity, int style) {
55
	    super.createControls(formElement, entity, style);
55

  
56 56
		commonName = formFactory.createTextWithLabelElement(this, "Common Name", entity.getName(), SWT.WRAP);
57 57

  
58 58
		combo_language = formFactory.createDefinedTermComboElement(TermType.Language, this, "Language", entity.getLanguage(), style);
......
60 60
		selection_namedArea = formFactory.createSelectionElement(NamedArea.class, //getConversationHolder(),
61 61
				formElement, "Area",
62 62
				entity.getArea(), EntitySelectionElement.NOTHING, style);
63

  
64
		createTimePeriod(formElement, entity, style);
63 65
	}
64 66

  
65 67
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/DistributionDetailElement.java
57 57
		ICdmFormElement parent = this.getParentElement();
58 58

  
59 59
        combo_presenceAbsence = formFactory.createTermComboElement(PresenceAbsenceTerm.class, this, "Distribution Status", entity.getStatus(), style);
60

  
60
        createTimePeriod(formElement, entity, style);
61 61
	}
62 62

  
63 63
	/** {@inheritDoc} */
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 47
		selection_derivedUnit = formFactory
48 48
				.createSelectionElement(SpecimenOrObservationBase.class,
49 49
						//getConversationHolder(),
......
59 59
			text_description.setText(descriptions.get(
60 60
					CdmStore.getDefaultLanguage()).getText());
61 61
		}
62

  
63
		createTimePeriod(formElement, entity, style);
62 64
	}
63 65

  
64 66
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/TaxonInteractionDetailElement.java
78 78
            interactionDescription.setText(descriptions.get(
79 79
                    CdmStore.getDefaultLanguage()).getText());
80 80
        }
81
        createTimePeriod(formElement, entity, style);
81 82
	}
82 83

  
83 84
	/** {@inheritDoc} */
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 51
		multilanguageTextElement = formFactory.createMultiLanguageTextElement(this, null, entity.getMultilanguageText(), 200, SWT.WRAP);
52 52
		//richtextTestElement = formFactory.createRichTextLabelElement(this, null, entity.getMultilanguageText().get(Language.DEFAULT()).getText(), 200, SWT.WRAP);
53
		createTimePeriod(formElement, entity, style);
53 54
	}
54 55

  
55 56
	/** {@inheritDoc} */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)