use of org.jowidgets.cap.ui.api.model.IDataModel in project jo-client-platform by jo-source.
the class BeanRelationTreeModelImpl method createValidationResult.
@Override
public IValidationResult createValidationResult() {
final IValidationResultBuilder builder = ValidationResult.builder();
builder.addResult(root.validate());
for (final Object relationModelObject : relationNodes.values()) {
final IBeanRelationNodeModel<?, ?> relationModel = (IBeanRelationNodeModel<?, ?>) relationModelObject;
builder.addResult(relationModel.validate());
}
for (final IDataModel dataModel : externalDataModels) {
builder.addResult(dataModel.validate());
}
return builder.build();
}
use of org.jowidgets.cap.ui.api.model.IDataModel in project jo-client-platform by jo-source.
the class DataModelContextImpl method doSave.
private void doSave(final ChangeResponseImpl changeRespose, final ICallback<Boolean> callback) {
final Set<IDataModel> modifiedModels = getModelsToSave(getRelevantModels(changeRespose.getChangeType()));
for (final IDataModel model : modifiedModels) {
model.addModificationStateListener(new ModificationStateListener(modifiedModels, model, callback));
}
saveDelegate.save();
}
Aggregations