/** * Open an edit screen for entity instance. * * @param item entity to edit * @param openType how to open the screen * @return created window * * @deprecated Use {@link ScreenBuilders} bean instead. */ @Deprecated default AbstractEditor openEditor(Entity item, WindowManager.OpenType openType) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo editorScreen = windowConfig.getEditorScreen(item); return (AbstractEditor) getWindowManager().openEditor(editorScreen, item, openType); }
/** * Open an edit screen for entity instance. * * @param item entity to edit * @param openType how to open the screen * @param params parameters to pass to {@code init()} method of the screen's controller * @return created window * * @deprecated Use {@link ScreenBuilders} bean instead. */ @Deprecated default AbstractEditor openEditor(Entity item, WindowManager.OpenType openType, Map<String, Object> params) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo editorScreen = windowConfig.getEditorScreen(item); return (AbstractEditor) getWindowManager().openEditor(editorScreen, item, openType, params); }
/** * Open an edit screen for entity instance. * * @param item entity to edit * @param openType how to open the screen * @param params parameters to pass to {@code init()} method of the screen's controller * @param parentDs if this parameter is not null, the editor will commit edited instance into this * datasource instead of directly to database * @return created window * * @deprecated Use {@link ScreenBuilders} bean instead. */ @Deprecated default AbstractEditor openEditor(Entity item, WindowManager.OpenType openType, Map<String, Object> params, Datasource parentDs) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo editorScreen = windowConfig.getEditorScreen(item); return (AbstractEditor) getWindowManager().openEditor(editorScreen, item, openType, params, parentDs); }
editorScreenId = builder.getScreenId(); } else { editorScreenId = windowConfig.getEditorScreen(entity).getId();