/** * 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. * * @param windowAlias screen ID as defined in {@code screens.xml} * @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(String windowAlias, Entity item, WindowManager.OpenType openType) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias); return (AbstractEditor) getWindowManager().openEditor(windowInfo, item, openType); }
/** * Open an edit screen. * * @param windowAlias screen ID as defined in {@code screens.xml} * @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(String windowAlias, Entity item, WindowManager.OpenType openType, Map<String, Object> params, Datasource parentDs) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias); return (AbstractEditor) getWindowManager().openEditor(windowInfo, item, openType, params, parentDs); }
/** * Open an edit screen. * * @param windowAlias screen ID as defined in {@code screens.xml} * @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(String windowAlias, Entity item, WindowManager.OpenType openType, Map<String, Object> params) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias); return (AbstractEditor) getWindowManager().openEditor(windowInfo, item, openType, params); }
/** * Open an edit screen. * * @param windowAlias screen ID as defined in {@code screens.xml} * @param item entity to edit * @param openType how to open the screen * @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(String windowAlias, Entity item, WindowManager.OpenType openType, Datasource parentDs) { WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME); WindowInfo windowInfo = windowConfig.getWindowInfo(windowAlias); return (AbstractEditor) getWindowManager().openEditor(windowInfo, item, openType, parentDs); }
/** * 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); }
((WindowManager) screens).openEditor(windowInfo, entityItem, openType, params);
AbstractEditor editor = (AbstractEditor) wm.openEditor( windowConfig.getWindowInfo(windowAlias), entity,
AbstractEditor editor = (AbstractEditor) wm.openEditor( windowConfig.getWindowInfo(windowAlias), entity,