Revision 02ec8d6b
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPopupEditor.java | ||
---|---|---|
85 | 85 |
|
86 | 86 |
private GridLayout _gridLayoutCache; |
87 | 87 |
|
88 |
private boolean isBeanLoaded; |
|
89 |
|
|
88 | 90 |
public AbstractPopupEditor(Layout layout, Class<DTO> dtoType) { |
89 | 91 |
|
90 | 92 |
mainLayout = new VerticalLayout(); |
... | ... | |
535 | 537 |
DTO beanToEdit = getPresenter().loadBeanById(identifier); |
536 | 538 |
fieldGroup.setItemDataSource(beanToEdit); |
537 | 539 |
afterItemDataSourceSet(); |
540 |
isBeanLoaded = true; |
|
538 | 541 |
} |
539 | 542 |
|
540 | 543 |
/** |
... | ... | |
546 | 549 |
return fieldGroup.getItemDataSource().getBean(); |
547 | 550 |
} |
548 | 551 |
|
552 |
/** |
|
553 |
* @return true once the bean has been loaded indicating that all fields have |
|
554 |
* been setup configured so that the editor is ready for use. |
|
555 |
*/ |
|
556 |
public boolean isBeanLoaded() { |
|
557 |
return isBeanLoaded; |
|
558 |
} |
|
559 |
|
|
549 | 560 |
/** |
550 | 561 |
* This method should only be used by the presenter of this view |
551 | 562 |
* |
Also available in: Unified diff
ref #7059 ref #7046 using kindOfunit for TypeDesisgnations instead of DerivationEvent type and fixing save and LIE problems:
- intoducing EntityCache to allow re-using previously loaded entities
- CdmEntityCache implements EntityCache
- ToOneRelatedEntityReloader to replace entities loaded by the LazySelect
- SpecimenTypeDesignationWorkingsetEditorPresenter implements CachingPresenter so that EnityCache and
ToOneRelatedEntityReloader can interact
- completing init strategies in RegistrationWorkingSetService
- SpecimenTypeDesignationWorkingsetEditorPresenter.saveBean reuses entities stored in entityCache
- introducing SpecimenTypeDesignationWorkingSetService