use of com.servoy.j2db.persistence.FlattenedLayoutContainer in project servoy-client by Servoy.
the class PersistHelper method getFlattenedPersist.
public static ISupportChilds getFlattenedPersist(FlattenedSolution flattenedSolution, Form parent, ISupportChilds persist) {
ISupportChilds flattenedPersist = persist;
if (flattenedPersist instanceof Form) {
flattenedPersist = flattenedSolution.getFlattenedForm(flattenedPersist);
}
if (flattenedPersist instanceof LayoutContainer && !(flattenedPersist instanceof FlattenedLayoutContainer)) {
FlattenedForm ff = flattenedSolution.getFlattenedForm(parent) instanceof FlattenedForm ? (FlattenedForm) flattenedSolution.getFlattenedForm(parent) : flattenedSolution.createFlattenedForm(parent);
flattenedPersist = new FlattenedLayoutContainer(ff, (LayoutContainer) flattenedPersist);
}
return flattenedPersist;
}
Aggregations