Project

General

Profile

« Previous | Next » 

Revision c46954e3

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 RelatedEntityListSelect (ToOneRelatedEntityField) edit and select working, add blocked by #6673

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/SelectFieldFactory.java
24 24
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
25 25
import eu.etaxonomy.cdm.model.common.TermType;
26 26
import eu.etaxonomy.cdm.persistence.query.OrderHint;
27
import eu.etaxonomy.vaadin.component.RelatedEntityListSelect;
27
import eu.etaxonomy.vaadin.component.ToOneRelatedEntityListSelect;
28 28

  
29 29
/**
30 30
 * @author a.kohlbecker
......
104 104
    * @param propertyId the property id from which to read the label
105 105
    * @return
106 106
    */
107
   public <T extends CdmBase> RelatedEntityListSelect<T> createListSelectEditor(String caption, Class<T> type, List<OrderHint> orderHints, String propertyId){
107
   public <T extends CdmBase> ToOneRelatedEntityListSelect<T> createListSelectEditor(String caption, Class<T> type, List<OrderHint> orderHints, String propertyId){
108 108

  
109 109
       if(orderHints == null){
110 110
           orderHints = OrderHint.defaultOrderHintsFor(type);
111 111
       }
112 112

  
113 113
       BeanItemContainer<T> termItemContainer = buildBeanItemContainer(type, orderHints);
114
       RelatedEntityListSelect<T> selectEditor = new RelatedEntityListSelect<T>(caption, type, termItemContainer);
114
       ToOneRelatedEntityListSelect<T> selectEditor = new ToOneRelatedEntityListSelect<T>(caption, type, termItemContainer);
115 115

  
116 116
    // guess property id to use for display
117 117
       if(propertyId == null) {

Also available in: Unified diff