Browse Source
* commit '011edc36e55b4f1b7ddf6c372a116d190c8936ff': (22 commits) REPORT-135591 控件显示增强不支持改变按钮组控件的字体 && REPORT-125065 自定义样式和主题预览效果不一致 alpha搜索增加fvs文件 REPORT-134932【设计器】参数面板的背景颜色会在“撤回"报表主体设计时消失 REPORT-135106 表格字体加载问题和语言导致的图表消失问题 配置放在设计器模块 配置放在设计器模块 REPORT-135046 feat:设计器语言切换支持扩展新语种 REPORT-130762 feat:JNDI数据连接提供禁用配置 REPORT-130762 feat:JNDI数据连接提供禁用配置 REPORT-132457 fix:设计器参数栏组件小窗设置展示不全 REPORT-131817 高德国产图层替换Mapbox图层 REPORT-134777 超链名称支持公式计算-全局查找匹配不到控件里的公式 按钮不用加tooltip,回滚一下 REPORT-106743 fix:设计器地图英文显示问题 增加AppTypeFilter过滤插件类型,如果为空则不过滤 REPORT-132109 fix: FVS插件 浅色主题-表格内合并单元格导致键入文字颜色为白色(非默认) REPORT-126773 fix: 修复自定义主题修改配色预览不生效问题 控件剪切、复制按钮fix 控件剪切、复制按钮fix 控件剪切、复制按钮fix ...final/11.0
superman
1 month ago
27 changed files with 377 additions and 56 deletions
@ -0,0 +1,56 @@
|
||||
package com.fr.design.i18n; |
||||
|
||||
import com.fr.config.ConfigContext; |
||||
import com.fr.config.DefaultConfiguration; |
||||
import com.fr.config.Identifier; |
||||
import com.fr.config.holder.factory.Holders; |
||||
import com.fr.config.holder.impl.MapConf; |
||||
|
||||
import java.util.Collections; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 设计器语言扩展配置 |
||||
* |
||||
* @author obo |
||||
* @since 11.0 |
||||
* Created on 2024/09/26 |
||||
*/ |
||||
public class DesignExtendLanguageConfig extends DefaultConfiguration { |
||||
|
||||
private static volatile DesignExtendLanguageConfig designExtendLanguageConfig = null; |
||||
|
||||
/** |
||||
* 获取实例 |
||||
*/ |
||||
public static DesignExtendLanguageConfig getInstance() { |
||||
if (designExtendLanguageConfig == null) { |
||||
designExtendLanguageConfig = ConfigContext.getConfigInstance(DesignExtendLanguageConfig.class); |
||||
} |
||||
return designExtendLanguageConfig; |
||||
} |
||||
|
||||
/** |
||||
* 设计器扩展的语言 |
||||
* key为localeString,例如en_US或en;value为改语言对应的国际化翻译key |
||||
*/ |
||||
@Identifier("extendDesignLocales") |
||||
private MapConf<Map<String, String>> extendDesignLocales = Holders.map(new HashMap<>(), String.class, String.class); |
||||
|
||||
public Map<String, String> getExtendedDesignLocales() { |
||||
return Collections.unmodifiableMap(extendDesignLocales.get()); |
||||
} |
||||
|
||||
public void setExtendedDesignLocales(Map<String, String> map) { |
||||
extendDesignLocales.set(map); |
||||
} |
||||
|
||||
@Override |
||||
public Object clone() throws CloneNotSupportedException { |
||||
DesignExtendLanguageConfig cloned = (DesignExtendLanguageConfig) super.clone(); |
||||
cloned.extendDesignLocales = ( MapConf<Map<String, String>>) extendDesignLocales.clone(); |
||||
return cloned; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue