Revision 851d4dc2
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/vaadin/component/ToManyRelatedEntitiesListSelect.java | ||
---|---|---|
228 | 228 |
// if(valueInitiallyWasNull && isOrderedCollection != isListType){ |
229 | 229 |
if(valueInitiallyWasNull && isOrderedCollection != isListType){ |
230 | 230 |
// need to reset the grid in this case, so that the button groups are created correctly |
231 |
grid.setRows(1); |
|
232 |
grid.removeAllComponents(); |
|
231 |
clearRows(); |
|
233 | 232 |
} |
234 | 233 |
isOrderedCollection = isListType; |
235 | 234 |
} else { |
236 |
// reset the grid |
|
237 |
grid.removeAllComponents(); |
|
238 |
grid.setRows(1); |
|
235 |
clearRows(); |
|
239 | 236 |
} |
240 | 237 |
|
241 | 238 |
if(!creatingFields){ |
... | ... | |
243 | 240 |
} |
244 | 241 |
} |
245 | 242 |
|
243 |
private void clearRows() { |
|
244 |
grid.removeAllComponents(); |
|
245 |
grid.setRows(1); |
|
246 |
} |
|
247 |
|
|
246 | 248 |
private void createFieldsForData(){ |
247 | 249 |
|
248 | 250 |
creatingFields = true; |
Also available in: Unified diff
ToManyRelatedEntitiesListSelect minor refactoring