Revision d99b930c
Added by Andreas Kohlbecker over 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/occurrence/CollectionPopupEditor.java | ||
---|---|---|
44 | 44 |
|
45 | 45 |
private static final int GRID_ROWS = 4; |
46 | 46 |
|
47 |
TextField nameField; |
|
47 | 48 |
TextField codeField; |
48 | 49 |
TextField codeStandardField; |
49 | 50 |
TextField townOrLocationField; |
... | ... | |
124 | 125 |
townOrLocationField = addTextField("Town or location", "townOrLocation", 2, row, 2, row); |
125 | 126 |
townOrLocationField.setWidth(100, Unit.PIXELS); |
126 | 127 |
|
128 |
row++; |
|
129 |
nameField = addTextField("Name", "name", 0, row, 2, row); |
|
130 |
|
|
127 | 131 |
row++; |
128 | 132 |
superCollectionCombobox = new ToOneRelatedEntityCombobox<Collection>("In collection", Collection.class); |
129 | 133 |
|
130 | 134 |
|
131 | 135 |
superCollectionCombobox.setWidth(300, Unit.PIXELS); |
132 |
addField(superCollectionCombobox, "superCollection", 0, row, 1, row);
|
|
136 |
addField(superCollectionCombobox, "superCollection", 0, row, 2, row);
|
|
133 | 137 |
|
134 | 138 |
superCollectionCombobox.getSelect().setCaptionGenerator( |
135 | 139 |
new CollectionCaptionGenerator() |
... | ... | |
162 | 166 |
|
163 | 167 |
row++; |
164 | 168 |
institutionCombobox = new ToOneRelatedEntityCombobox<Institution>("Institute", Institution.class); |
165 |
addField(institutionCombobox, "institute", 0, row, 1, row);
|
|
169 |
addField(institutionCombobox, "institute", 0, row, 2, row);
|
|
166 | 170 |
|
167 | 171 |
institutionCombobox.getSelect().setCaptionGenerator( |
168 | 172 |
new CdmTitleCacheCaptionGenerator<Institution>() |
Also available in: Unified diff
fix #9182 adding name field to collection editor