gpt4 book ai didi

com.haulmont.cuba.gui.WindowManager.openEditor()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 00:37:05 25 4
gpt4 key购买 nike

本文整理了Java中com.haulmont.cuba.gui.WindowManager.openEditor()方法的一些代码示例,展示了WindowManager.openEditor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowManager.openEditor()方法的具体详情如下:
包路径:com.haulmont.cuba.gui.WindowManager
类名称:WindowManager
方法名:openEditor

WindowManager.openEditor介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

/**
 * 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);
}

代码示例来源:origin: com.haulmont.cuba/cuba-gui

((WindowManager) screens).openEditor(windowInfo, entityItem, openType, params);

代码示例来源:origin: com.haulmont.cuba/cuba-web

AbstractEditor editor = (AbstractEditor) wm.openEditor(
    windowConfig.getWindowInfo(windowAlias),
    entity,

代码示例来源:origin: com.haulmont.cuba/cuba-gui

AbstractEditor editor = (AbstractEditor) wm.openEditor(
    windowConfig.getWindowInfo(windowAlias),
    entity,

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com