Browse Source
* commit '57096dbdec2e85c50841585740847bbed0a4d70c': REPORT-114548 【控件显示增强-按钮控件边框线型颜色】按钮控件的边框线型颜色自定义保存后,再打开颜色会变为跟随的主题色。且边框线型颜色展示异常 视图树也补一下 REPORT-114524 【控件显示增强-复选按钮组控件】自定义,自定义修改控件背景后会报错 REPORT-114501 【控件显示增强-边框颜色】边框颜色传到前端为null REPORT-114164 控件扩展样式-图文按钮图标格添加至12个以上,显示异常 fix: 回退代码 fvs.chart和fvs.ec.chart都不走refresh逻辑 原始问题fvs.ec.chart的邮件使用chartemailpane才没有正文勾选项不通过refresh实现 通过插件DuchampHyperlinkGroup重写实现邮件&联动fvs组件 #REPORT-111618 REPORT-111619 控件增强-更多的样式配置--报表支撑 主题预览界面支持控件及提升跟随tab切换 REPORT-114305 控件扩展样式—等分布局、自然布局效果都反了 REPORT-114164 控件扩展样式-图文按钮图标格添加至12个以上,显示异常 REPORT-111619 控件增强-更多的样式配置--报表支撑 自测问题修复3 REPORT-111619 控件基础面板的字体名面板初始化 REPORT-111619 控件增强-更多的样式配置--报表支撑 自测问题修复 REPORT-111619 控件增强-更多的样式配置--报表支撑 自测问题修复 REPORT-111619 控件增强-更多的样式配置--报表支撑 移动端部分代码之前在别的工程漏提了,补一下 REPORT-112769 JxUIPane新增执行js方法 REPORT-112501 模板主题管理英文显示不全feature/x
32 changed files with 361 additions and 73 deletions
@ -0,0 +1,62 @@ |
|||||||
|
package com.fr.widgettheme; |
||||||
|
|
||||||
|
import com.fr.base.theme.TemplateTheme; |
||||||
|
import com.fr.widgettheme.theme.widget.style.MobileThemedWidgetStyle; |
||||||
|
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主题样式预览终端类型 |
||||||
|
* |
||||||
|
* @author obo |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2024/2/2 |
||||||
|
*/ |
||||||
|
public enum ThemePreviewTerminal { |
||||||
|
|
||||||
|
/** |
||||||
|
* 桌面端,为默认类型 |
||||||
|
*/ |
||||||
|
PC(0) { |
||||||
|
@Override |
||||||
|
public ThemedWidgetStyle getThemeWidgetStyle(TemplateTheme theme) { |
||||||
|
return (ThemedWidgetStyle) theme.getWidgetStyle(); |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
/** |
||||||
|
* 移动端 |
||||||
|
*/ |
||||||
|
MOBILE(1) { |
||||||
|
@Override |
||||||
|
public ThemedWidgetStyle getThemeWidgetStyle(TemplateTheme theme) { |
||||||
|
return (MobileThemedWidgetStyle) theme.getMobileWidgetStyle(); |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
/** |
||||||
|
* 类型码 |
||||||
|
*/ |
||||||
|
final int code; |
||||||
|
|
||||||
|
ThemePreviewTerminal(int code) { |
||||||
|
this.code = code; |
||||||
|
} |
||||||
|
|
||||||
|
public int getCode() { |
||||||
|
return code; |
||||||
|
} |
||||||
|
|
||||||
|
public abstract ThemedWidgetStyle getThemeWidgetStyle(TemplateTheme theme); |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据code获取对应的枚举 |
||||||
|
*/ |
||||||
|
public static ThemePreviewTerminal getTypeByCode(int code) { |
||||||
|
for (ThemePreviewTerminal type : ThemePreviewTerminal.values()) { |
||||||
|
if (type.code == code) { |
||||||
|
return type; |
||||||
|
} |
||||||
|
} |
||||||
|
throw new IllegalArgumentException("Invalid ThemePreviewTerminalType code :" + code); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue