Revision 72060b99
Added by Patrick Plitzner almost 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
323 | 323 |
import eu.etaxonomy.taxeditor.ui.section.vocabulary.TermVocabularyDetailElement; |
324 | 324 |
import eu.etaxonomy.taxeditor.ui.section.vocabulary.TermVocabularyDetailSection; |
325 | 325 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
326 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElementWithAbbreviatedTitle; |
|
326 | 327 |
import eu.etaxonomy.taxeditor.ui.selection.NomenclaturalAuthorTeamSelectionElement; |
327 | 328 |
import eu.etaxonomy.taxeditor.ui.selection.TaxonNodeSelectionElement; |
328 | 329 |
|
... | ... | |
2616 | 2617 |
return element; |
2617 | 2618 |
} |
2618 | 2619 |
|
2620 |
/** |
|
2621 |
* <p> |
|
2622 |
* Creates a selection element for the given type T which shows only the <b>abbreviated</b> title as the label. |
|
2623 |
* </p> |
|
2624 |
* <p> |
|
2625 |
* <strong>Selection elements not handled by this method:</strong> |
|
2626 |
* <ul> |
|
2627 |
* <li>{@link TaxonNodeSelectionElement} see |
|
2628 |
* {@link #createTaxonNodeSelectionElement(ConversationHolder, ICdmFormElement, String, TaxonNode, int, int)} |
|
2629 |
* </li> |
|
2630 |
* <li>{@link NomenclaturalAuthorTeamSelectionElement} see |
|
2631 |
* {@link #createNomenclaturalAuthorTeamSelectionElement(ConversationHolder, ICdmFormElement, String, Team, int, int)} |
|
2632 |
* </li> |
|
2633 |
* </ul> |
|
2634 |
* </p> |
|
2635 |
* |
|
2636 |
* @param clazz |
|
2637 |
* a {@link Class} object of the type that you want the selection |
|
2638 |
* element to handle |
|
2639 |
* @param parentElement |
|
2640 |
* a {@link ICdmFormElement} object. |
|
2641 |
* @param labelString |
|
2642 |
* a {@link String} object. |
|
2643 |
* @param selectionType |
|
2644 |
* @param selection |
|
2645 |
* a {@link ICdmBase} object. |
|
2646 |
* @param style |
|
2647 |
* a int. |
|
2648 |
* @param conversation |
|
2649 |
* a {@link ConversationHolder} object. |
|
2650 |
* @return a {@link EntitySelectionElement} object. |
|
2651 |
*/ |
|
2652 |
public <T extends ICdmBase> EntitySelectionElementWithAbbreviatedTitle<T> createSelectionElementWithAbbreviatedTitle( |
|
2653 |
Class<T> clazz, ConversationHolder conversation, ICdmFormElement parentElement, String labelString, |
|
2654 |
T selection, int mode, int style) { |
|
2655 |
EntitySelectionElementWithAbbreviatedTitle<T> element = new EntitySelectionElementWithAbbreviatedTitle<T>(this, conversation, parentElement, clazz, |
|
2656 |
labelString, selection, mode, style); |
|
2657 |
adapt(element); |
|
2658 |
parentElement.addElement(element); |
|
2659 |
return element; |
|
2660 |
} |
|
2661 |
|
|
2619 | 2662 |
public TaxonNodeSelectionElement createTaxonNodeSelectionElement(ConversationHolder conversation, |
2620 | 2663 |
ICdmFormElement parentElement, String labelString, TaxonNode selection, int mode, int style) { |
2621 | 2664 |
TaxonNodeSelectionElement element = new TaxonNodeSelectionElement(this, conversation, parentElement, |
Also available in: Unified diff
Show abbreviated title cache for authors and refernce in taxon details
view