Project

General

Profile

Revision 3f010594

ID3f01059431616763b5423c8a9591c188d4f4fc4c
Parent 3bd87058
Child b0339f85

Added by Andreas Kohlbecker over 1 year ago

ref #7995 invoking Registration.updateStatusAndDate() also in RegistrationPopupEditor on status changes

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationPopEditorView.java
29 29
     * @return the institutionField
30 30
     */
31 31
    public ListSelect getInstitutionField();
32

  
33
    /**
34
     * @return
35
     */
36
    public ListSelect getStatusSelect();
32 37
}
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationPopupEditor.java
44 44

  
45 45
    private ListSelect institutionField;
46 46

  
47
    private ListSelect statusSelect;
48

  
47 49
    public RegistrationPopupEditor() {
48 50
        super(new FormLayout(), Registration.class);
49 51
    }
......
64 66
        specificIdentifierField = new TextFieldNFix("Specific Identifier");
65 67
        addField(specificIdentifierField, "specificIdentifier");
66 68

  
67
        ListSelect statusSelect = new ListSelect("Status", Arrays.asList(RegistrationStatus.values()));
69
        statusSelect = new ListSelect("Status", Arrays.asList(RegistrationStatus.values()));
68 70
        statusSelect.setNullSelectionAllowed(false);
69 71
        statusSelect.setRows(1);
72
        statusSelect.addValueChangeListener( e -> getBean().updateStatusAndDate((RegistrationStatus) e.getProperty().getValue()));
70 73
        addField(statusSelect, "status");
71 74

  
72 75
        submitterField = new ListSelect("Submitter");
......
130 133
    public ListSelect getInstitutionField() {
131 134
        return institutionField;
132 135
    }
136

  
137
    @Override
138
    public ListSelect getStatusSelect() {
139
        return statusSelect;
140
    }
133 141
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)