use of com.haulmont.cuba.gui.screen.compatibility.ScreenWrapper in project jmix by jmix-framework.
the class CubaScreens method openWindow.
@Override
public com.haulmont.cuba.gui.components.Window openWindow(WindowInfo windowInfo, OpenType openType, Map<String, Object> params) {
params = createParametersMap(windowInfo, params);
MapScreenOptions options = new MapScreenOptions(params);
Screen screen = createScreen(windowInfo, openType.getOpenMode(), options);
applyOpenTypeParameters(screen.getWindow(), openType);
show(screen);
return screen instanceof com.haulmont.cuba.gui.components.Window ? (com.haulmont.cuba.gui.components.Window) screen : new ScreenWrapper(screen);
}
use of com.haulmont.cuba.gui.screen.compatibility.ScreenWrapper in project jmix by jmix-framework.
the class CubaScreens method openWindow.
@Override
public com.haulmont.cuba.gui.components.Window openWindow(WindowInfo windowInfo, OpenType openType) {
Map<String, Object> params = createParametersMap(windowInfo, Collections.emptyMap());
MapScreenOptions options = new MapScreenOptions(params);
Screen screen = createScreen(windowInfo, openType.getOpenMode(), options);
applyOpenTypeParameters(screen.getWindow(), openType);
show(screen);
return screen instanceof com.haulmont.cuba.gui.components.Window ? (com.haulmont.cuba.gui.components.Window) screen : new ScreenWrapper(screen);
}
Aggregations