Revision 2fab6704
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
62 | 62 |
import eu.etaxonomy.cdm.model.common.Language; |
63 | 63 |
import eu.etaxonomy.cdm.model.common.LanguageString; |
64 | 64 |
import eu.etaxonomy.cdm.model.common.Marker; |
65 |
import eu.etaxonomy.cdm.model.common.Representation; |
|
66 |
import eu.etaxonomy.cdm.model.common.TermBase; |
|
65 | 67 |
import eu.etaxonomy.cdm.model.common.TermType; |
66 | 68 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
67 | 69 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
... | ... | |
590 | 592 |
return element; |
591 | 593 |
} |
592 | 594 |
|
595 |
/** |
|
596 |
* <p> |
|
597 |
* createMultiLanguageTextElement |
|
598 |
* </p> |
|
599 |
* |
|
600 |
* @param parentElement |
|
601 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
|
602 |
* object. |
|
603 |
* |
|
604 |
* @param Representation |
|
605 |
* a {@link eu.etaxonomy.cdm.model.common.Representation} object. |
|
606 |
* @param textHeight |
|
607 |
* a int. |
|
608 |
* @param style |
|
609 |
* a int. |
|
610 |
* @return a |
|
611 |
* {@link eu.etaxonomy.taxeditor.ui.element.RepresentationElement} |
|
612 |
* object. |
|
613 |
*/ |
|
614 |
public RepresentationElement createRepresentationElement(ICdmFormElement parentElement, Representation representation, TermBase term,int textHeight, int style, boolean isTranslationWizard) { |
|
615 |
RepresentationElement element = new RepresentationElement(this, parentElement, representation, term, textHeight, style, isTranslationWizard); |
|
616 |
adapt(element); |
|
617 |
parentElement.addElement(element); |
|
618 |
return element; |
|
619 |
} |
|
620 |
|
|
621 |
/** |
|
622 |
* <p> |
|
623 |
* createMultiLanguageTextElement |
|
624 |
* </p> |
|
625 |
* |
|
626 |
* @param parentElement |
|
627 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
|
628 |
* object. |
|
629 |
* |
|
630 |
* @param term |
|
631 |
* a {@link eu.etaxonomy.cdm.model.common.Representation} object. |
|
632 |
* @param textHeight |
|
633 |
* a int. |
|
634 |
* @param style |
|
635 |
* a int. |
|
636 |
* @return a |
|
637 |
* {@link eu.etaxonomy.taxeditor.ui.element.RepresentationElement} |
|
638 |
* object. |
|
639 |
*/ |
|
640 |
public RepresentationElement createRepresentationElement(ICdmFormElement parentElement, TermBase term, int textHeight, int style, boolean isTranslationWizard) { |
|
641 |
RepresentationElement element = new RepresentationElement(this, parentElement, term, textHeight, style, isTranslationWizard); |
|
642 |
adapt(element); |
|
643 |
parentElement.addElement(element); |
|
644 |
return element; |
|
645 |
} |
|
646 |
|
|
593 | 647 |
public KeyStatementElement createKeyStatementElement(ICdmFormElement parentElement, String labelString, |
594 | 648 |
KeyStatement keyStatement, int textHeight, int style) { |
595 | 649 |
KeyStatementElement element = new KeyStatementElement(this, parentElement, labelString, keyStatement, |
... | ... | |
2349 | 2403 |
addAndAdaptSection(parentElement, section); |
2350 | 2404 |
return section; |
2351 | 2405 |
} |
2352 |
|
|
2406 |
|
|
2353 | 2407 |
public DerivedUnitFacadeIdentifierSection createDerivedUnitFacadeIdentifierSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
2354 | 2408 |
DerivedUnitFacadeIdentifierSection section = new DerivedUnitFacadeIdentifierSection(this, conversation, parentElement, style); |
2355 | 2409 |
addAndAdaptSection(parentElement, section); |
Also available in: Unified diff
add multilanguage support for terms