Project

General

Profile

Download (2.06 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.view.name;
10

    
11
import java.util.Collection;
12

    
13
import org.springframework.security.core.GrantedAuthority;
14

    
15
import com.vaadin.ui.GridLayout;
16

    
17
import eu.etaxonomy.cdm.vaadin.security.AccessRestrictedView;
18
import eu.etaxonomy.cdm.vaadin.util.converter.TypeDesignationConverter.TypeDesignationWorkingSet;
19
import eu.etaxonomy.vaadin.mvp.AbstractPopupEditor;
20

    
21
/**
22
 * @author a.kohlbecker
23
 * @since May 15, 2017
24
 *
25
 */
26
public class SpecimenTypeDesignationWorkingsetPopupEditor extends AbstractPopupEditor<TypeDesignationWorkingSet, SpecimenTypeDesignationWorkingsetEditorPresenter>
27
    implements SpecimenTypeDesignationWorkingsetPopupEditorView, AccessRestrictedView {
28

    
29
    private static final long serialVersionUID = 5418275817834009509L;
30

    
31
    public SpecimenTypeDesignationWorkingsetPopupEditor() {
32
        super(new GridLayout(), TypeDesignationWorkingSet.class);
33
    }
34

    
35
    /**
36
     * {@inheritDoc}
37
     */
38
    @Override
39
    protected void initContent() {
40

    
41
        GridLayout grid = (GridLayout)getFieldLayout();
42
        grid.setSpacing(true);
43
        grid.setMargin(true);
44

    
45
        //TODO typifyingAuthors
46

    
47
        // FieldUnit
48

    
49

    
50
        //
51

    
52

    
53
    }
54

    
55
    /**
56
     * {@inheritDoc}
57
     */
58
    @Override
59
    public String getWindowCaption() {
60
        return "Specimen typedesignations editor";
61
    }
62

    
63
    /**
64
     * {@inheritDoc}
65
     */
66
    @Override
67
    public void focusFirst() {
68
        // none
69
    }
70

    
71
    /**
72
     * {@inheritDoc}
73
     */
74
    @Override
75
    protected String getDefaultComponentStyles() {
76
        return "tiny";
77
    }
78

    
79
    /**
80
     * {@inheritDoc}
81
     */
82
    @Override
83
    public boolean allowAnonymousAccess() {
84
        return false;
85
    }
86

    
87
    /**
88
     * {@inheritDoc}
89
     */
90
    @Override
91
    public Collection<Collection<GrantedAuthority>> allowedGrantedAuthorities() {
92
        return null;
93
    }
94
}
(2-2/6)