Project

General

Profile

« Previous | Next » 

Revision 84746052

Added by Andreas Kohlbecker almost 6 years ago

PopupViewRegistration to manage view popupview and target field - fixing problems

View differences:

src/main/java/eu/etaxonomy/vaadin/ui/navigation/PopupViewRegistration.java
38 38

  
39 39
        popupWindowMap.put(popup, window);
40 40

  
41

  
42 41
        if(!popupViewFieldMap.containsKey(parentView)){
43 42
            popupViewFieldMap.put(parentView, new HashMap<>());
44 43
        }
......
53 52
        return null;
54 53
    }
55 54

  
55
    public Field<?> get(PopupView popup){
56
        for(Map<PopupView, Field<?>> popupFieldMap : popupViewFieldMap.values()){
57
            if(popupFieldMap.containsKey(popup)){
58
                return popupFieldMap.get(popup);
59
            }
60
        }
61
        return null;
62
    }
63

  
56 64
    /**
57 65
     * @param popup
58 66
     */

Also available in: Unified diff