com.haulmont.cuba.gui.config.WindowConfig.getEditorScreenId()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(120)

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

WindowConfig.getEditorScreenId介绍

暂无

代码示例

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

@EventListener(AppContextInitializedEvent.class)
@Order(Events.HIGHEST_PLATFORM_PRECEDENCE + 300)
protected void init() {
  ClientConfig clientConfig = configuration.getConfig(ClientConfig.class);
  String property = clientConfig.getScreenIdsToSaveHistory();
  if (StringUtils.isNotBlank(property)) {
    screenIds.addAll(Arrays.asList(StringUtils.split(property, ',')));
  }
  for (MetaClass metaClass : metadata.getTools().getAllPersistentMetaClasses()) {
    Map<String, Object> attributes = metadata.getTools().getMetaAnnotationAttributes(metaClass.getAnnotations(),
        TrackEditScreenHistory.class);
    if (Boolean.TRUE.equals(attributes.get("value"))) {
      screenIds.add(windowConfig.getEditorScreenId(metaClass));
    }
  }
}

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

/**
 * @return  editor screen identifier
 */
public String getWindowId() {
  if (windowId != null) {
    return windowId;
  } else {
    MetaClass metaClass = target.getDatasource().getMetaClass();
    WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
    return windowConfig.getEditorScreenId(metaClass);
  }
}

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

/**
 * @return  editor screen identifier
 */
public String getWindowId() {
  if (windowId != null) {
    return windowId;
  } else {
    MetaClass metaClass = target.getDatasource().getMetaClass();
    WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
    return windowConfig.getEditorScreenId(metaClass);
  }
}

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

public WindowInfo getEditorScreen(Entity entity) {
  MetaClass metaClass = entity.getMetaClass();
  MetaClass originalMetaClass = metadata.getExtendedEntities().getOriginalOrThisMetaClass(metaClass);
  WindowInfo windowInfo = primaryEditors.get(originalMetaClass.getJavaClass());
  if (windowInfo != null) {
    return windowInfo;
  }
  String editorScreenId = getEditorScreenId(metaClass);
  return getWindowInfo(editorScreenId);
}

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

protected void openEntityWindow(SearchResultEntry entry, String entityName, WindowManager.OpenType openType) {
  WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
  MetaClass metaClass = metadata.getSession().getClass(entityName);
  Entity entity = reloadEntity(metaClass, entry.getId());
  openEditor(windowConfig.getEditorScreenId(metaClass), entity, openType);
}

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

windowAlias = windowConfig.getEditorScreenId(entity.getMetaClass());

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

editorScreenId = windowConfig.getEditorScreenId(metaClass);

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

WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
if (windowAlias == null) {
  windowAlias = windowConfig.getEditorScreenId(entity.getMetaClass());

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

windowAlias = windowConfig.getEditorScreenId(entity.getMetaClass());

相关文章