use of com.haulmont.cuba.web.WebWindowManager in project cuba by cuba-platform.
the class WebFrame method openEditor.
@Override
public Window.Editor openEditor(Entity item, WindowManager.OpenType openType) {
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
WindowInfo editorScreen = windowConfig.getEditorScreen(item);
WebWindowManager wm = App.getInstance().getWindowManager();
return wm.openEditor(editorScreen, item, openType);
}
use of com.haulmont.cuba.web.WebWindowManager in project cuba by cuba-platform.
the class WebFrame method openEditor.
@Override
public Window.Editor openEditor(String windowAlias, Entity item, WindowManager.OpenType openType, Map<String, Object> params, Datasource parentDs) {
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias);
WebWindowManager wm = App.getInstance().getWindowManager();
return wm.openEditor(windowInfo, item, openType, params, parentDs);
}
use of com.haulmont.cuba.web.WebWindowManager in project cuba by cuba-platform.
the class WebFrame method openLookup.
@Override
public Window.Lookup openLookup(Class<? extends Entity> entityClass, Window.Lookup.Handler handler, WindowManager.OpenType openType) {
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
WindowInfo lookupScreen = windowConfig.getLookupScreen(entityClass);
WebWindowManager wm = App.getInstance().getWindowManager();
return wm.openLookup(lookupScreen, handler, openType);
}
use of com.haulmont.cuba.web.WebWindowManager in project cuba by cuba-platform.
the class WebFrame method openEditor.
@Override
public Window.Editor openEditor(Entity item, WindowManager.OpenType openType, Map<String, Object> params) {
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
WindowInfo editorScreen = windowConfig.getEditorScreen(item);
WebWindowManager wm = App.getInstance().getWindowManager();
return wm.openEditor(editorScreen, item, openType, params);
}
use of com.haulmont.cuba.web.WebWindowManager in project cuba by cuba-platform.
the class WebFrame method openFrame.
@Override
public Frame openFrame(Component parent, String windowAlias) {
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias);
WebWindowManager wm = App.getInstance().getWindowManager();
Frame wrappedFrame = ((Frame.Wrapper) wrapper).getWrappedFrame();
return wm.openFrame(wrappedFrame, parent, windowInfo);
}
Aggregations