本文整理了Java中com.haulmont.cuba.gui.config.WindowConfig.getEditorScreenId()
方法的一些代码示例,展示了WindowConfig.getEditorScreenId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowConfig.getEditorScreenId()
方法的具体详情如下:
包路径:com.haulmont.cuba.gui.config.WindowConfig
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!