use of com.haulmont.cuba.web.gui.components.presentations.PresentationEditor in project cuba by cuba-platform.
the class AbstractEditPresentationAction method createEditor.
protected PresentationEditor createEditor(Presentation presentation) {
Class<? extends PresentationEditor> windowClass = getPresentationEditorClass();
PresentationEditor window;
try {
Constructor<? extends PresentationEditor> windowConstructor = windowClass.getConstructor(Presentation.class, Component.HasPresentations.class);
window = windowConstructor.newInstance(presentation, table);
} catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new DevelopmentException("Invalid presentation's screen");
}
return window;
}
use of com.haulmont.cuba.web.gui.components.presentations.PresentationEditor in project cuba by cuba-platform.
the class AbstractEditPresentationAction method openEditor.
protected void openEditor(Presentation presentation) {
PresentationEditor window = createEditor(presentation);
AppUI.getCurrent().addWindow(window);
window.center();
}
Aggregations