Revision d90a6c9f
Added by Patrick Plitzner over 9 years ago
- added publish flag to DetailsView for SpecimenOrObservationBases (fixes #3951)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/TissueSampleGeneralDetailElement.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.occurrence.PreservationMethod; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
23 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
24 | 25 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
25 | 26 |
import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement; |
... | ... | |
43 | 44 |
private EntitySelectionElement<Collection> selectionCollection; |
44 | 45 |
private TextWithLabelElement textAccessionNumber; |
45 | 46 |
private TextWithLabelElement textBarcode; |
47 |
private CheckboxElement checkIsPublish; |
|
46 | 48 |
|
47 | 49 |
|
48 | 50 |
/** |
... | ... | |
81 | 83 |
selectionCollection = formFactory.createSelectionElement(Collection.class, getConversationHolder(), formElement, "Collection", entity.getCollection(), EntitySelectionElement.ALL, style); |
82 | 84 |
textAccessionNumber = formFactory.createTextWithLabelElement(formElement, "Accession Number", entity.getAccessionNumber(), style); |
83 | 85 |
textBarcode = formFactory.createTextWithLabelElement(formElement, "Barcode", entity.getBarcode(), style); |
86 |
checkIsPublish = formFactory.createCheckbox(formElement, "Publish", entity.isPublish(), style); |
|
84 | 87 |
|
85 | 88 |
} |
86 | 89 |
|
... | ... | |
119 | 122 |
getEntity().getDerivedFrom().setActor(selectionStaff.getSelection()); |
120 | 123 |
} |
121 | 124 |
} |
125 |
else if(eventSource==checkIsPublish){ |
|
126 |
getEntity().setPublish(checkIsPublish.getSelection()); |
|
127 |
} |
|
122 | 128 |
} |
123 | 129 |
|
124 | 130 |
private PreservationMethod addPreservationMethod(){ |
Also available in: Unified diff