Browse Source
* commit '42339dbe9bb5352c3c5fbbcc16fd7fbf239bed42': REPORT-94597 安装【平台内打开标签页】插件,FR图表超链会多两个重复下拉项 改用ListMap REPORT-94597 安装【平台内打开标签页】插件,FR图表超链会多两个重复下拉项 REPORT-94114 设计器面板图表超链选项缺失 修改 报表块超链选项 REPORT-94114 设计器面板图表超链选项缺失 【问题原因】没有判断当前是决策报表图表还是普通报表图表,两者的超链选项不同 【改动思路】增加判断当前报表类型 REPORT-82787 图表空数据提示配置页面,默认图片需补充繁中版persist/10.0
superman
2 years ago
6 changed files with 30 additions and 56 deletions
@ -1,37 +0,0 @@
|
||||
package com.fr.design.locale.impl; |
||||
|
||||
import com.fr.general.GeneralContext; |
||||
import com.fr.general.IOUtils; |
||||
import com.fr.general.locale.LocaleMark; |
||||
|
||||
import java.awt.image.BufferedImage; |
||||
import java.util.HashMap; |
||||
import java.util.Locale; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 根据本地化信息设置服务器图表空数据提示图标 |
||||
* |
||||
* @author obo |
||||
* @version 11.0 |
||||
* Created by obo on 2023/3/22 |
||||
*/ |
||||
public class EmptyDataMark implements LocaleMark<BufferedImage> { |
||||
|
||||
private Map<Locale, BufferedImage> map = new HashMap<>(); |
||||
|
||||
private static final BufferedImage ZH_EMPTY_DATA = IOUtils.readImage("com/fr/design/images/zh_emptydata.png"); |
||||
private static final BufferedImage US_EMPTY_DATA = IOUtils.readImage("/com/fr/design/images/us_emptydata.png"); |
||||
private static final BufferedImage ZH_TRADITIONAL_EMPTY_DATA = IOUtils.readImage("/com/fr/design/images/zh_traditional_emptydata.png"); |
||||
|
||||
public EmptyDataMark() { |
||||
map.put(Locale.CHINA, ZH_EMPTY_DATA); |
||||
map.put(Locale.US, US_EMPTY_DATA); |
||||
map.put(Locale.TAIWAN, ZH_TRADITIONAL_EMPTY_DATA); |
||||
} |
||||
@Override |
||||
public BufferedImage getValue() { |
||||
BufferedImage result = map.get(GeneralContext.getLocale()); |
||||
return result == null ? US_EMPTY_DATA : result; |
||||
} |
||||
} |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Loading…
Reference in new issue