Project

General

Profile

« Previous | Next » 

Revision d3759748

Added by Patrick Plitzner about 8 years ago

Implement preferred stable Identifier for Specimen in TaxEditor #5764

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
33 33
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
34 34
import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement;
35 35
import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement;
36
import eu.etaxonomy.taxeditor.ui.element.UriWithLabelElement;
36 37
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
37 38
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
38 39

  
......
61 62
	private EntitySelectionElement<Collection> selection_collection;
62 63
	private TextWithLabelElement text_accessionNumber;
63 64
	private GatheringEventUnitElement element_elevation;
65
	private UriWithLabelElement uriPreferredStableUri;
64 66
	private CheckboxElement checkIsPublish;
65 67

  
66 68

  
67
	/**
68
	 * @param formFactory
69
	 * @param formElement
70
	 */
71 69
	public DerivedUnitGeneralDetailElement(CdmFormFactory formFactory,
72 70
			ICdmFormElement formElement) {
73 71
	    super(formFactory, formElement);
......
122 120
		text_accessionNumber = formFactory.createTextWithLabelElement(
123 121
				formElement, "Accession Number", entity.getAccessionNumber(),
124 122
				style);
123
		uriPreferredStableUri = formFactory.createUriWithLabelElement(formElement, "Pref. Stable URI", entity.getPreferredStableUri(), style);
125 124
        checkIsPublish = formFactory.createCheckbox(formElement, "Publish", entity.isPublish(), style);
126 125

  
127 126
	}
......
153 152
			getEntity().setAccessionNumber(text_accessionNumber.getText());
154 153
		} else if (eventSource == combo_specorobstype) {
155 154
			getEntity().setType(combo_specorobstype.getSelection());
155
		} else if (eventSource == uriPreferredStableUri) {
156
		    getEntity().setPreferredStableUri(uriPreferredStableUri.parseText());
156 157
		} else if (eventSource == checkIsPublish) {
157
		    getEntity().innerDerivedUnit().setPublish(checkIsPublish.getSelection());
158
		}
158
            getEntity().innerDerivedUnit().setPublish(checkIsPublish.getSelection());
159
        }
159 160

  
160 161
		if (eventSource != toggleableText_titleCache) {
161 162
			toggleableText_titleCache.setText(getEntity().getTitleCache());

Also available in: Unified diff