@Override public void windowClosed(String actionId) { if (Window.COMMIT_ACTION_ID.equals(actionId)) { wizard.regionsTable.refresh(); wizard.setupButtonsVisibility(); } } }
@Override public void actionPerform(Component component) { wizard.getItem().getReportRegions().clear(); wizard.regionsTable.refresh(); //for web6 wizard.reportTypeOptionGroup.setValue(newValue); } }));
@Override public void actionPerform(Component component) { wizard.getItem().getReportRegions().clear(); wizard.regionsTable.refresh(); //for web6 wizard.needUpdateEntityModel = true; wizard.entity.setValue((MetaClass) newValue); clearQueryAndFilter(); } }));
@Override public void actionPerform(Component component) { wizard.reportRegionsDs.removeItem(wizard.regionsTable.getSingleSelected()); normalizeRegionPropertiesOrderNum(); wizard.regionsTable.refresh(); wizard.setupButtonsVisibility(); } },
protected void showRestoreDialog() { final Set<Entity> entityList = entitiesTable.getSelected(); Entity entity = entitiesDs.getItem(); if (entityList != null && entity != null && entityList.size() > 0) { if (entity instanceof SoftDelete) { showOptionDialog( getMessage("dialogs.Confirmation"), getMessage("dialogs.Message"), MessageType.CONFIRMATION, new Action[]{ new DialogAction(Type.OK).withHandler(event -> { restoreService.restoreEntities(entityList); entitiesTable.refresh(); entitiesTable.focus(); }), new DialogAction(Type.CANCEL, Status.PRIMARY).withHandler(event -> { entitiesTable.focus(); }) } ); } } else { showNotification(getMessage("entityRestore.restoreMsg")); } }
tablePanel.expand(entitiesTable, "100%", "100%"); entitiesTable.refresh();