Пример #1
0
 @Override
 public void onEdit(Item item) {
   MultiLevelEditorEventBus ownerEditorEventBus =
       ((ConfigurablePresenterFactory) this.factory.getPresenterFactory())
           .getEventBusManager()
           .getEventBus(MultiLevelEditorEventBus.class);
   ownerEditorEventBus.renderEditor(
       this.tableComponent.getRecordEditor(), item, this.entityContainer);
 }
Пример #2
0
 private void doCreate() throws InstantiationException, IllegalAccessException, Exception {
   Object newInstance =
       this.pageDataBuilder.saveInstance(
           this.entityClass.newInstance(), this.daoProvider, this.bean);
   @SuppressWarnings({"unchecked", "rawtypes"})
   Item item = ((BeanItemContainer) this.entityContainer).addBean(newInstance);
   if (this.tableComponent.getRecordEditor() != null) {
     MultiLevelEditorEventBus eventBus =
         ((ConfigurablePresenterFactory) this.factory.getPresenterFactory())
             .getEventBusManager()
             .getEventBus(MultiLevelEditorEventBus.class);
     eventBus.renderEditor(this.tableComponent.getRecordEditor(), item, this.entityContainer);
   }
 }