Project

General

Profile

Revision 023049dd

ID023049dde65e4bb0238963cbe832c367ffa1efde
Parent 6618dd45
Child 96acd270

Added by Andreas Kohlbecker almost 4 years ago

fixing collection date field

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/SpecimenTypeDesignationWorkingsetPopupEditor.java
21 21
import com.vaadin.ui.ListSelect;
22 22
import com.vaadin.ui.Panel;
23 23
import com.vaadin.ui.TextArea;
24
import com.vaadin.ui.TextField;
25 24

  
26 25
import eu.etaxonomy.cdm.persistence.hibernate.permission.CRUD;
27 26
import eu.etaxonomy.cdm.vaadin.component.CollectionRowRepresentative;
28
import eu.etaxonomy.cdm.vaadin.component.PartialDateField;
29 27
import eu.etaxonomy.cdm.vaadin.component.common.GeoLocationField;
30 28
import eu.etaxonomy.cdm.vaadin.component.common.MinMaxTextField;
31 29
import eu.etaxonomy.cdm.vaadin.component.common.TeamOrPersonField;
30
import eu.etaxonomy.cdm.vaadin.component.common.TimePeriodField;
32 31
import eu.etaxonomy.cdm.vaadin.model.registration.SpecimenTypeDesignationDTO;
33 32
import eu.etaxonomy.cdm.vaadin.model.registration.SpecimenTypeDesignationWorkingSetDTO;
34 33
import eu.etaxonomy.cdm.vaadin.security.AccessRestrictedView;
......
145 144
        addField(collectorField, "collector", 0, row, 2, row);
146 145

  
147 146
        row++;
148
        PartialDateField collectionDateField = new PartialDateField("Collection date");
149
        collectionDateField.setInputPrompt("dd.mm.yyyy");
150
        addField(collectionDateField, "gatheringDate", 0, row);
151
        TextField fieldNumberField = addTextField("Field number", "fieldNumber", 2, row);
147
        TimePeriodField collectionDateField = new TimePeriodField("Collection date");
148
        addField(collectionDateField, "gatheringDate", 0, row, 1, row);
149
        addTextField("Field number", "fieldNumber", 2, row);
152 150

  
153 151
        row++;
154 152

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)