Revision 6c9baadc
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
59 | 59 |
import eu.etaxonomy.cdm.model.common.Annotation; |
60 | 60 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
61 | 61 |
import eu.etaxonomy.cdm.model.common.Credit; |
62 |
import eu.etaxonomy.cdm.model.common.ExtendedTimePeriod; |
|
62 | 63 |
import eu.etaxonomy.cdm.model.common.Extension; |
63 | 64 |
import eu.etaxonomy.cdm.model.common.ICdmBase; |
64 | 65 |
import eu.etaxonomy.cdm.model.common.IdentifiableSource; |
... | ... | |
87 | 88 |
import eu.etaxonomy.cdm.model.description.StatisticalMeasure; |
88 | 89 |
import eu.etaxonomy.cdm.model.description.StatisticalMeasurementValue; |
89 | 90 |
import eu.etaxonomy.cdm.model.description.TaxonInteraction; |
91 |
import eu.etaxonomy.cdm.model.description.TemporalData; |
|
90 | 92 |
import eu.etaxonomy.cdm.model.description.TextData; |
91 | 93 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
92 | 94 |
import eu.etaxonomy.cdm.model.location.NamedAreaLevel; |
... | ... | |
190 | 192 |
import eu.etaxonomy.taxeditor.ui.section.description.detail.IndividualsAssociationDetailElement; |
191 | 193 |
import eu.etaxonomy.taxeditor.ui.section.description.detail.QuantitativeDataDetailElement; |
192 | 194 |
import eu.etaxonomy.taxeditor.ui.section.description.detail.TaxonInteractionDetailElement; |
195 |
import eu.etaxonomy.taxeditor.ui.section.description.detail.TemporalDataDetailElement; |
|
193 | 196 |
import eu.etaxonomy.taxeditor.ui.section.description.detail.TextDataDetailElement; |
194 | 197 |
import eu.etaxonomy.taxeditor.ui.section.feature.CharacterDetailElement; |
195 | 198 |
import eu.etaxonomy.taxeditor.ui.section.feature.CharacterDetailSection; |
... | ... | |
2584 | 2587 |
|
2585 | 2588 |
public RightsSection createRightsSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
2586 | 2589 |
RightsSection section = new RightsSection(this, conversation, parentElement, style); |
2590 |
|
|
2587 | 2591 |
addAndAdaptSection(parentElement, section); |
2588 | 2592 |
return section; |
2589 | 2593 |
} |
... | ... | |
3217 | 3221 |
} else if (entity instanceof TaxonInteraction) { |
3218 | 3222 |
detailedDescriptionElement = new TaxonInteractionDetailElement(this, parentElement, |
3219 | 3223 |
(TaxonInteraction) entity, style); |
3224 |
} else if (entity instanceof TemporalData) { |
|
3225 |
detailedDescriptionElement = new TemporalDataDetailElement(this, parentElement, (TemporalData) entity, style); |
|
3220 | 3226 |
} else if (entity instanceof TextData) { |
3221 | 3227 |
detailedDescriptionElement = new TextDataDetailElement(this, parentElement, (TextData) entity, style); |
3222 |
} else { |
|
3228 |
} |
|
3229 |
else { |
|
3223 | 3230 |
throw new IllegalStateException("There is no interface for the given description element"); |
3224 | 3231 |
} |
3225 | 3232 |
adapt(detailedDescriptionElement); |
... | ... | |
3328 | 3335 |
return element; |
3329 | 3336 |
} |
3330 | 3337 |
|
3338 |
/** |
|
3339 |
* @param extendedTimePeriodElement |
|
3340 |
* @param twistie |
|
3341 |
* @return |
|
3342 |
*/ |
|
3343 |
public ExtendedTimeDetailSection createExtendedTimeDetailSection( |
|
3344 |
ExtendedTimePeriodElement parentElement, int style) { |
|
3345 |
ExtendedTimeDetailSection section = new ExtendedTimeDetailSection(this, parentElement, style); |
|
3346 |
parentElement.addElement(section); |
|
3347 |
adapt(section); |
|
3348 |
return section; |
|
3349 |
} |
|
3350 |
public ExtendedTimePeriodElement createExtendedTimePeriodElement( |
|
3351 |
ICdmFormElement parentElement, String labelString, ExtendedTimePeriod timePeriod, int style) { |
|
3352 |
ExtendedTimePeriodElement section = new ExtendedTimePeriodElement(this, parentElement, labelString, timePeriod, style); |
|
3353 |
parentElement.addElement(section); |
|
3354 |
adapt(section); |
|
3355 |
return section; |
|
3356 |
} |
|
3357 |
|
|
3331 | 3358 |
|
3332 | 3359 |
// public RichTextWithLabelElement createRichTextLabelElement(ICdmFormElement parentElement, String labelString, String initialText, int textHeight, int style) { |
3333 | 3360 |
// RichTextWithLabelElement element = new RichTextWithLabelElement(this, parentElement, labelString, |
Also available in: Unified diff
ref #8990: add temporal data to editor