@Override protected boolean preCommit() { if (localizedFrame != null) { category.setLocaleNames(localizedFrame.getValue()); } return super.preCommit(); } }
@Override protected boolean preCommit() { if (reportRegionPropertiesTableDs.getItems().isEmpty()) { showNotification(getMessage("selectAtLeastOneProp"), NotificationType.TRAY); return false; } return super.preCommit(); }
@Override protected boolean preCommit() { ParameterValue parameterValue = valueFrame == null ? null : valueFrame.getValue(); parameterDs.getItem().setParameterValue(parameterValue); return super.preCommit(); }
@Override protected boolean preCommit() { if (super.preCommit()) { PivotTableAggregation aggregation = getItem(); boolean hasMatches = existingItems.stream(). anyMatch(e -> !Objects.equals(aggregation, e) && Objects.equals(aggregation.getCaption(), e.getCaption())); if (hasMatches) { ValidationErrors validationErrors = new ValidationErrors(); validationErrors.add(getMessage("pivotTableEdit.uniqueAggregationOptionCaption")); showValidationErrors(validationErrors); return false; } return true; } return false; }
@Override protected boolean preCommit() { List<Parameter> parameters = paramsFrame.getParameters(); getItem().setParameters(parameters); if (widgetEditFrame != null) { widgetRepository.serializeWidgetFields(widgetEditFrame, widgetDs.getItem()); } return super.preCommit(); }
protected boolean commitInternal(boolean close) { if (!preCommit()) return false; boolean committed; DsContext context = getDsContext(); if (context != null) { committed = context.commit(); } else { DataSupplier supplier = getDataService(); supplier.commit(getItem()); committed = true; } return postCommit(committed, close); }
return super.preCommit();