Browse Source

根据插件提示修改一些备注和import语句

feature/x
obo 1 year ago
parent
commit
be7ececfa9
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java
  2. 2
      designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java
  3. 2
      designer-base/src/main/java/com/fr/design/mainframe/theme/FormThemeProfilePane.java
  4. 2
      designer-base/src/main/java/com/fr/design/mainframe/theme/ReportThemeProfilePane.java
  5. 6
      designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeEditorPane.java
  6. 10
      designer-base/src/main/java/com/fr/widgettheme/ParameterBackgroundStyleSettingPane.java
  7. 8
      designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayAction.java
  8. 2
      designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java
  9. 6
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/ParamContainerBackgroundPane.java
  10. 12
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/ParamContainerStyleEditPane.java
  11. 8
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/DesktopWidgetStyleEditPane.java
  12. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/MobileWidgetStyleEditPane.java
  13. 7
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditContainerPane.java
  14. 14
      designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java
  15. 22
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/ButtonStyleDefinedPane.java
  16. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewCell.java
  17. 15
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewCellWithIcon.java
  18. 13
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewPane.java
  19. 28
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/ImageUtils.java
  20. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/NormalButtonPreviewCell.java
  21. 12
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/RingControlPreviewCell.java
  22. 12
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/RoundControlPreviewCell.java
  23. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/TextPreviewCell.java
  24. 27
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetDisplayFormThemePreviewPane.java
  25. 17
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetDisplayReportThemePreviewPane.java
  26. 8
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECComponentPreviewPane.java
  27. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECPreviewPane.java
  28. 2
      designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECReportPreviewPane.java
  29. 2
      designer-base/src/main/java/com/fr/widgettheme/util/WidgetThemeDesignerUtils.java
  30. 2
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/DisplayEnhanceMobileStyleDefinePane.java
  31. 2
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/FileEditorMobileStyleDefinePane.java
  32. 2
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/FreeButtonMobileStyleDefinePane.java
  33. 2
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/LabelMobileStyleDefinePane.java
  34. 2
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/MobileStyleFontConfigPane.java
  35. 8
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/provider/DisplayEnhanceMobileStyleFactory.java
  36. 4
      designer-base/src/main/java/com/fr/widgettheme/widget/mobile/provider/WidgetThemeMobileStyleDefinePaneCreator.java
  37. 2
      designer-form/src/main/java/com/fr/design/widgettheme/StyleSettingPane.java
  38. 2
      designer-form/src/main/java/com/fr/design/widgettheme/common/NormalButtonSettingPane.java
  39. 2
      designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeCreatorPaneAcceptor.java
  40. 4
      designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeXCreaterPaneAcceptor.java
  41. 10
      designer-realize/src/main/java/com/fr/strongest/WidgetThemeListenerStarter.java

2
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -24,7 +24,7 @@ import com.fr.design.actions.edit.UndoAction;
import com.fr.design.actions.file.SaveAsTemplateAction;
import com.fr.design.actions.file.SaveTemplateAction;
import com.fr.design.actions.file.WebPreviewUtils;
import com.fr.controldisplayenhance.designer.WidgetThemeDisplayAction;
import com.fr.widgettheme.designer.WidgetThemeDisplayAction;
import com.fr.design.base.mode.DesignModeContext;
import com.fr.design.data.datapane.TableDataTreePane;
import com.fr.design.designer.DesignerProxy;

2
designer-base/src/main/java/com/fr/design/mainframe/mobile/ui/MobileStylePane.java

@ -19,7 +19,7 @@ import com.fr.log.FineLoggerFactory;
import com.fr.plugin.context.PluginContext;
import com.fr.plugin.observer.PluginEventType;
import com.fr.stable.ArrayUtils;
import com.fr.controldisplayenhance.widget.mobile.provider.WidgetThemeMobileStyleDefinePaneCreator;
import com.fr.widgettheme.widget.mobile.provider.WidgetThemeMobileStyleDefinePaneCreator;
import javax.swing.DefaultListCellRenderer;
import javax.swing.DefaultListModel;

2
designer-base/src/main/java/com/fr/design/mainframe/theme/FormThemeProfilePane.java

@ -11,7 +11,7 @@ import com.fr.design.mainframe.theme.edit.ChartStyleFormEditPane;
import com.fr.design.mainframe.theme.edit.ComponentStyleEditPane;
import com.fr.design.mainframe.theme.edit.FormBodyStyleEditPane;
import com.fr.design.mainframe.theme.processor.ThemePreviewPaneProcessor;
import com.fr.controldisplayenhance.theme.panel.WidgetDisplayFormThemePreviewPane;
import com.fr.widgettheme.theme.panel.WidgetDisplayFormThemePreviewPane;
import javax.swing.JPanel;

2
designer-base/src/main/java/com/fr/design/mainframe/theme/ReportThemeProfilePane.java

@ -6,7 +6,7 @@ import com.fr.design.ExtraDesignClassManager;
import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.theme.edit.ReportBodyStyleEditPane;
import com.fr.design.mainframe.theme.processor.ThemePreviewPaneProcessor;
import com.fr.controldisplayenhance.theme.panel.WidgetDisplayReportThemePreviewPane;
import com.fr.widgettheme.theme.panel.WidgetDisplayReportThemePreviewPane;
/**
* @author Starryi

6
designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeEditorPane.java

@ -5,7 +5,7 @@ import com.fr.base.theme.TemplateTheme;
import com.fr.base.theme.TemplateThemeConfig;
import com.fr.base.theme.settings.ThemedCellStyleList;
import com.fr.base.theme.settings.ThemedColorScheme;
import com.fr.controldisplayenhance.util.WidgetThemeDesignerUtils;
import com.fr.widgettheme.util.WidgetThemeDesignerUtils;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.designer.IntervalConstants;
@ -29,8 +29,8 @@ import com.fr.general.GeneralContext;
import com.fr.plugin.observer.PluginEvent;
import com.fr.plugin.observer.PluginEventListener;
import com.fr.stable.StringUtils;
import com.fr.controldisplayenhance.theme.edit.ParamContainerStyleEditPane;
import com.fr.controldisplayenhance.theme.edit.widget.WidgetStyleEditContainerPane;
import com.fr.widgettheme.theme.edit.ParamContainerStyleEditPane;
import com.fr.widgettheme.theme.edit.widget.WidgetStyleEditContainerPane;
import javax.swing.BorderFactory;
import javax.swing.JComponent;

10
designer-base/src/main/java/com/fr/controldisplayenhance/ParameterBackgroundStyleSettingPane.java → designer-base/src/main/java/com/fr/widgettheme/ParameterBackgroundStyleSettingPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance;
package com.fr.widgettheme;
import com.fr.base.theme.TemplateTheme;
import com.fr.design.beans.BasicBeanPane;
@ -13,15 +13,15 @@ import com.fr.form.ui.container.WParameterLayout;
import com.fr.general.Background;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.awt.*;
import javax.swing.JPanel;
import java.awt.BorderLayout;
/**
* 设计器参数面板的高级设置增加背景的主题样式设置
*
* @author Bruce.Deng
* @version 11.0
* Created by Bruce.Deng on 2023/2/20
* @since 11.0
* Created on 2023/2/20
*/
public class ParameterBackgroundStyleSettingPane extends BasicBeanPane<WParameterLayout> {

8
designer-base/src/main/java/com/fr/controldisplayenhance/designer/WidgetThemeDisplayAction.java → designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayAction.java

@ -1,9 +1,9 @@
package com.fr.controldisplayenhance.designer;
package com.fr.widgettheme.designer;
import com.fr.base.io.BaseBook;
import com.fr.base.svg.IconUtils;
import com.fr.design.actions.JTemplateAction;
import com.fr.controldisplayenhance.util.WidgetThemeDesignerUtils;
import com.fr.widgettheme.util.WidgetThemeDesignerUtils;
import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.i18n.Toolkit;
@ -15,8 +15,8 @@ import java.awt.event.ActionEvent;
/**
* @author Bruce.Deng
* @version 11.0
* Created by Bruce.Deng on 2022/11/28
* @since 11.0
* Created 2022/11/28
*/
public class WidgetThemeDisplayAction<T extends JTemplate<?, ?>> extends JTemplateAction<T> {

2
designer-base/src/main/java/com/fr/controldisplayenhance/designer/WidgetThemeDisplayConfigPane.java → designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.designer;
package com.fr.widgettheme.designer;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.icheckbox.UICheckBox;

6
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/ParamContainerBackgroundPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/ParamContainerBackgroundPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit;
package com.fr.widgettheme.theme.edit;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.event.UIObserverListener;
@ -18,8 +18,8 @@ import java.util.Set;
/**
* @author Bruce.Deng
* @version 11.0
* Created by Bruce.Deng on 2023/1/5
* @since 11.0
* Created on 2023/1/5
*/
public class ParamContainerBackgroundPane extends BackgroundPane {
public ParamContainerBackgroundPane(){

12
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/ParamContainerStyleEditPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/ParamContainerStyleEditPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit;
package com.fr.widgettheme.theme.edit;
import com.fr.base.theme.TemplateTheme;
import com.fr.widgettheme.theme.widget.style.ThemedParamContainerStyle;
@ -10,13 +10,15 @@ import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import javax.swing.*;
import java.awt.*;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Component;
/**
* @author Bruce.Deng
* @version 11.0
* Created by Bruce.Deng on 2022/12/16
* @since 11.0
* Created on 2022/12/16
*/
public class ParamContainerStyleEditPane<T extends TemplateTheme> extends BasicBeanPane<T> {
public static final int LABEL_WIDTH = 60;

8
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/widget/DesktopWidgetStyleEditPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/DesktopWidgetStyleEditPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit.widget;
package com.fr.widgettheme.theme.edit.widget;
import com.fr.base.background.ColorBackground;
import com.fr.base.theme.TemplateTheme;
@ -11,8 +11,10 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory;
import javax.swing.*;
import java.awt.*;
import javax.swing.ButtonGroup;
import javax.swing.JPanel;
import java.awt.Component;
/**
* 桌面端主题面板

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/widget/MobileWidgetStyleEditPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/MobileWidgetStyleEditPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit.widget;
package com.fr.widgettheme.theme.edit.widget;
import com.fr.base.theme.TemplateTheme;
import com.fr.widgettheme.theme.widget.style.BorderStyle;

7
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/widget/WidgetStyleEditContainerPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditContainerPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit.widget;
package com.fr.widgettheme.theme.edit.widget;
import com.fr.base.theme.TemplateTheme;
import com.fr.design.beans.BasicBeanPane;
@ -10,8 +10,9 @@ import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.awt.*;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

14
designer-base/src/main/java/com/fr/controldisplayenhance/theme/edit/widget/WidgetStyleEditPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.edit.widget;
package com.fr.widgettheme.theme.edit.widget;
import com.fr.base.theme.TemplateTheme;
import com.fr.design.beans.BasicBeanPane;
@ -17,8 +17,11 @@ import com.fr.stable.StringUtils;
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.awt.*;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Component;
/**
* 组件样式编辑基础类
@ -58,6 +61,11 @@ public class WidgetStyleEditPane<T extends TemplateTheme> extends BasicBeanPane<
this.add(customPane, BorderLayout.NORTH);
}
/**
* 初始化标签
*
* @return components
*/
public Component[][] generateComponent() {
Component[][] components = new Component[][]{new Component[]{
new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Color")), colorSelectBox},

22
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/ButtonStyleDefinedPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/ButtonStyleDefinedPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.widgettheme.theme.widget.style.ButtonBackgroundStyle;
import com.fr.design.dialog.BasicPane;
@ -10,12 +10,18 @@ import com.fr.widgettheme.theme.bean.ButtonBackground;
import com.fr.design.mainframe.widget.accessibles.AccessibleImgBackgroundEditor;
import com.fr.general.Background;
import javax.swing.*;
import java.awt.*;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Component;
/**
* Created by johntsai(mailto://johntsai@fanruan.com) on 10/3/23.
**/
* 按钮样式定义窗口
*
* @author obo
* @since 11.0
* Created on 2023/11/13
*/
public class ButtonStyleDefinedPane extends BasicPane {
protected AccessibleImgBackgroundEditor initBackgroundPane;
@ -47,12 +53,18 @@ public class ButtonStyleDefinedPane extends BasicPane {
}
/**
* 填充
*/
public void populate(ButtonBackground buttonBackground) {
initBackgroundPane.setValue(buttonBackground.getInitialBackground());
overBackgroundPane.setValue(buttonBackground.getOverBackground());
clickBackgroundPane.setValue(buttonBackground.getClickBackground());
}
/**
* 更新
*/
public ButtonBackgroundStyle update() {
return new ButtonBackgroundStyle((Background) initBackgroundPane.getValue(), (Background) overBackgroundPane.getValue(), (Background) clickBackgroundPane.getValue());
}

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/ControlPreviewCell.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewCell.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.BaseUtils;
import com.fr.base.Style;

15
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/ControlPreviewCellWithIcon.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewCellWithIcon.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.svg.IconUtils;
@ -7,15 +7,20 @@ import com.fr.design.border.UIRoundedBorder;
import com.fr.stable.StringUtils;
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants;
import javax.swing.*;
import java.awt.*;
import javax.swing.Icon;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.LayoutManager;
/**
* 主题界面预览控件单元格子,控件图表直接用icon
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class ControlPreviewCellWithIcon extends ControlPreviewCell {
private static final int CONTROL_ALPHA = 16;

13
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/ControlPreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/ControlPreviewPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.background.ColorBackground;
import com.fr.base.theme.TemplateTheme;
@ -7,8 +7,11 @@ import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.theme.preview.ThemePreviewed;
import com.fr.general.Background;
import javax.swing.*;
import java.awt.*;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
@ -17,8 +20,8 @@ import java.util.List;
* 主题界面页面中的参数界面
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class ControlPreviewPane extends JPanel implements ThemePreviewed<TemplateTheme> {

28
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/ImageUtils.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/ImageUtils.java

@ -1,15 +1,27 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import javax.swing.*;
import java.awt.*;
import javax.swing.ImageIcon;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
/**
* Created by johntsai(mailto://johntsai@fanruan.com) on 15/6/23.
**/
* 控件主题Image处理工具类
*
* @author obo
* @since 11.0
* Created on 2023/11/13
*/
public class ImageUtils {
/**
* 根据主题色处理image
*
* @param image 图像
* @param color 主题色
* @return 处理结果
*/
public static BufferedImage colorImage(BufferedImage image, Color color) {
int width = image.getWidth();
int height = image.getHeight();
@ -42,6 +54,12 @@ public class ImageUtils {
return image;
}
/**
* ImageIcon转换为BufferImage
*
* @param icon imageIcon
* @return BufferedImage
*/
public static BufferedImage imageIconToBufferedImage(ImageIcon icon) {
BufferedImage bi = new BufferedImage(
icon.getIconWidth(),

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/NormalButtonPreviewCell.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/NormalButtonPreviewCell.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle;

12
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/RingControlPreviewCell.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/RingControlPreviewCell.java

@ -1,16 +1,20 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle;
import java.awt.*;
import java.awt.Dimension;
import java.awt.LayoutManager;
import java.awt.Graphics2D;
import java.awt.Graphics;
import java.awt.Color;
/**
* 主题界面预览控件单元格子,单选按钮组被选中的样子
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class RingControlPreviewCell extends ControlPreviewCell {
/**

12
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/RoundControlPreviewCell.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/RoundControlPreviewCell.java

@ -1,16 +1,20 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle;
import java.awt.*;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.LayoutManager;
/**
* 主题界面预览控件单元格子,单选按钮组未被选中的样子
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class RoundControlPreviewCell extends ControlPreviewCell {
public RoundControlPreviewCell() {

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/TextPreviewCell.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/TextPreviewCell.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.theme.TemplateTheme;

27
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/WidgetDisplayFormThemePreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetDisplayFormThemePreviewPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.BaseFormula;
import com.fr.base.background.ColorBackground;
@ -26,8 +26,13 @@ import com.fr.plugin.chart.vanchart.VanChart;
import com.fr.stable.Constants;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import javax.swing.JPanel;
import java.awt.AlphaComposite;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import static com.fr.design.i18n.Toolkit.i18nText;
@ -36,8 +41,8 @@ import static com.fr.design.i18n.Toolkit.i18nText;
* 主题界面预览控frm界面,就是主jar里的那个界面做了简单的修改
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class WidgetDisplayFormThemePreviewPane extends TemplateThemePreviewPane<FormTheme> {
private WidgetThemeECComponentPreviewPane elementCasePane;
@ -116,7 +121,11 @@ public class WidgetDisplayFormThemePreviewPane extends TemplateThemePreviewPane<
g2d.setComposite(oldComposite);
}
//柱形图
/**
* 初始化柱形图
*
* @return 存放图表
*/
private ChartCollection initColumnChart() {
try {
VanChart chart = (VanChart) ChartTypeManager.getInstance().getCharts(VanChartColumnPlot.VAN_CHART_COLUMN_PLOT_ID)[0].clone();
@ -176,7 +185,11 @@ public class WidgetDisplayFormThemePreviewPane extends TemplateThemePreviewPane<
return null;
}
//饼图
/**
* 初始化饼图
*
* @return chartCollection
*/
private ChartCollection initPieChart() {
try {
VanChart chart = (VanChart) ChartTypeManager.getInstance().getCharts(PiePlot4VanChart.VAN_CHART_PIE_PLOT)[0].clone();

17
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/WidgetDisplayReportThemePreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetDisplayReportThemePreviewPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.BaseFormula;
import com.fr.base.background.ColorBackground;
@ -20,15 +20,18 @@ import com.fr.plugin.chart.column.VanChartColumnPlot;
import com.fr.plugin.chart.type.GradientType;
import com.fr.plugin.chart.vanchart.VanChart;
import java.awt.*;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
/**
* 主题界面预览控cpt界面,就是主jar里的那个界面做了简单的修改
*
* @author John.Ying
* @version 11.0
* Created by John.Ying on 2023/3/18
* @since 11.0
* Created on 2023/3/18
*/
public class WidgetDisplayReportThemePreviewPane extends TemplateThemePreviewPane<ReportTheme> {
private Background background;
@ -74,7 +77,11 @@ public class WidgetDisplayReportThemePreviewPane extends TemplateThemePreviewPan
}
//柱形图
/**
* 初始化柱形图
*
* @return chartCollection
*/
private ChartCollection initColumnChart() {
try {
VanChart chart = (VanChart) ChartTypeManager.getInstance().getCharts(VanChartColumnPlot.VAN_CHART_COLUMN_PLOT_ID)[0].clone();

8
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/WidgetThemeECComponentPreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECComponentPreviewPane.java

@ -1,9 +1,9 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.theme.FormTheme;
import com.fr.design.mainframe.theme.preview.ComponentPreviewPane;
import java.awt.*;
import java.awt.Component;
import static com.fr.design.i18n.Toolkit.i18nText;
@ -11,8 +11,8 @@ import static com.fr.design.i18n.Toolkit.i18nText;
* 决策报表主题界面的那个表格+标题部分
*
* @author John.Ying
* @version 1.0
* Created by John.Ying on 2021/3/18
* @since 1.0
* Created on 2021/3/18
*/
public class WidgetThemeECComponentPreviewPane extends ComponentPreviewPane {
private WidgetThemeECPreviewPane contentPane;

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/WidgetThemeECPreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECPreviewPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.CellBorderSourceFlag;
import com.fr.base.theme.TemplateTheme;

2
designer-base/src/main/java/com/fr/controldisplayenhance/theme/panel/WidgetThemeECReportPreviewPane.java → designer-base/src/main/java/com/fr/widgettheme/theme/panel/WidgetThemeECReportPreviewPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.theme.panel;
package com.fr.widgettheme.theme.panel;
import com.fr.base.CellBorderSourceFlag;
import com.fr.base.theme.ReportTheme;

2
designer-base/src/main/java/com/fr/controldisplayenhance/util/WidgetThemeDesignerUtils.java → designer-base/src/main/java/com/fr/widgettheme/util/WidgetThemeDesignerUtils.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.util;
package com.fr.widgettheme.util;
import com.fr.base.io.AttrMark;
import com.fr.base.io.IOFile;

2
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/pane/DisplayEnhanceMobileStyleDefinePane.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/DisplayEnhanceMobileStyleDefinePane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.widget.mobile.pane;
package com.fr.widgettheme.widget.mobile.pane;
import com.fr.base.background.ColorBackground;
import com.fr.widgettheme.theme.widget.style.MobileThemedWidgetStyle;

2
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/pane/FileEditorMobileStyleDefinePane.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/FileEditorMobileStyleDefinePane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.widget.mobile.pane;
package com.fr.widgettheme.widget.mobile.pane;
import com.fr.base.background.ColorBackground;
import com.fr.widgettheme.theme.widget.mobile.style.FileEditorStyle;

2
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/pane/FreeButtonMobileStyleDefinePane.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/FreeButtonMobileStyleDefinePane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.widget.mobile.pane;
package com.fr.widgettheme.widget.mobile.pane;
import com.fr.base.background.ColorBackground;
import com.fr.widgettheme.theme.widget.mobile.style.FreeButtonStyle;

2
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/pane/LabelMobileStyleDefinePane.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/LabelMobileStyleDefinePane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.widget.mobile.pane;
package com.fr.widgettheme.widget.mobile.pane;
import com.fr.base.background.ColorBackground;
import com.fr.widgettheme.theme.widget.mobile.style.LabelIconSettingStyle;

2
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/pane/MobileStyleFontConfigPane.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/pane/MobileStyleFontConfigPane.java

@ -1,4 +1,4 @@
package com.fr.controldisplayenhance.widget.mobile.pane;
package com.fr.widgettheme.widget.mobile.pane;
import com.fr.base.BaseUtils;

8
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/provider/DisplayEnhanceMobileStyleFactory.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/provider/DisplayEnhanceMobileStyleFactory.java

@ -1,8 +1,8 @@
package com.fr.controldisplayenhance.widget.mobile.provider;
package com.fr.widgettheme.widget.mobile.provider;
import com.fr.controldisplayenhance.widget.mobile.pane.FileEditorMobileStyleDefinePane;
import com.fr.controldisplayenhance.widget.mobile.pane.FreeButtonMobileStyleDefinePane;
import com.fr.controldisplayenhance.widget.mobile.pane.LabelMobileStyleDefinePane;
import com.fr.widgettheme.widget.mobile.pane.FileEditorMobileStyleDefinePane;
import com.fr.widgettheme.widget.mobile.pane.FreeButtonMobileStyleDefinePane;
import com.fr.widgettheme.widget.mobile.pane.LabelMobileStyleDefinePane;
import com.fr.widgettheme.theme.widget.mobile.style.FileEditorStyle;
import com.fr.widgettheme.theme.widget.mobile.style.FreeButtonStyle;
import com.fr.widgettheme.theme.widget.mobile.style.LabelIconSettingStyle;

4
designer-base/src/main/java/com/fr/controldisplayenhance/widget/mobile/provider/WidgetThemeMobileStyleDefinePaneCreator.java → designer-base/src/main/java/com/fr/widgettheme/widget/mobile/provider/WidgetThemeMobileStyleDefinePaneCreator.java

@ -1,7 +1,7 @@
package com.fr.controldisplayenhance.widget.mobile.provider;
package com.fr.widgettheme.widget.mobile.provider;
import com.fr.base.io.IOFile;
import com.fr.controldisplayenhance.widget.mobile.pane.DisplayEnhanceMobileStyleDefinePane;
import com.fr.widgettheme.widget.mobile.pane.DisplayEnhanceMobileStyleDefinePane;
import com.fr.widgettheme.theme.widget.mobile.style.WidgetThemeMobileCommonExtraStyle;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.file.HistoryTemplateListCache;

2
designer-form/src/main/java/com/fr/design/widgettheme/StyleSettingPane.java

@ -23,7 +23,7 @@ import com.fr.design.widget.ui.designer.component.FontSizeComboPane;
import com.fr.design.widget.ui.designer.component.UIBoundSpinner;
import com.fr.form.ui.Widget;
import com.fr.general.FRFont;
import com.fr.controldisplayenhance.theme.panel.ButtonStyleDefinedPane;
import com.fr.widgettheme.theme.panel.ButtonStyleDefinedPane;
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants;
import javax.swing.*;

2
designer-form/src/main/java/com/fr/design/widgettheme/common/NormalButtonSettingPane.java

@ -10,7 +10,6 @@ import com.fr.design.widgettheme.StyleSetting;
import com.fr.widgettheme.theme.widget.theme.cell.NormalButtonTheme;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.util.Arrays;
import java.util.List;
@ -30,7 +29,6 @@ public class NormalButtonSettingPane<T extends Widget> extends StyleSettingPane<
StyleSetting.LINE_TYPE,
StyleSetting.BORDER_RADIUS
));
this.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
}
public NormalButtonSettingPane(List<StyleSetting> styleSettingList) {

2
designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeCreatorPaneAcceptor.java

@ -1,6 +1,6 @@
package com.fr.design.widgettheme.processor;
import com.fr.controldisplayenhance.util.WidgetThemeDesignerUtils;
import com.fr.widgettheme.util.WidgetThemeDesignerUtils;
import com.fr.design.beans.BasicBeanPane;
import com.fr.form.parameter.FormSubmitButton;
import com.fr.form.ui.Button;

4
designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeXCreaterPaneAcceptor.java

@ -1,6 +1,6 @@
package com.fr.design.widgettheme.processor;
import com.fr.controldisplayenhance.util.WidgetThemeDesignerUtils;
import com.fr.widgettheme.util.WidgetThemeDesignerUtils;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.designer.creator.XButton;
import com.fr.design.designer.creator.XCheckBox;
@ -19,7 +19,7 @@ import com.fr.design.widgettheme.LabelSettingPane;
import com.fr.design.widgettheme.ParaButtonSettingPane;
import com.fr.design.widgettheme.ParaEditorSettingPane;
import com.fr.design.widgettheme.ParaTreeEditorSettingPane;
import com.fr.controldisplayenhance.ParameterBackgroundStyleSettingPane;
import com.fr.widgettheme.ParameterBackgroundStyleSettingPane;
import com.fr.design.widgettheme.common.NormalButtonSettingPane;
import java.util.List;

10
designer-realize/src/main/java/com/fr/strongest/WidgetThemeListenerStarter.java

@ -15,14 +15,18 @@ import com.fr.module.ModuleContext;
import com.fr.widgettheme.control.attr.WidgetDisplayEnhanceMarkAttr;
/**
* 控件属性增强启动类
* 控件属性增强监听器启动类
*
* @author Leo.Qin
* @author obo
* @since 11.0
* Created on 2023/11/7
* Created on 2023/11/13
*/
public class WidgetThemeListenerStarter {
private WidgetThemeListenerStarter(){}
/**
* 启动对模版控件主题显示的监听开关
*/
public static void start() {
EventDispatcher.listen(DesignerLaunchStatus.STARTUP_COMPLETE, new Listener<Null>() {
@Override

Loading…
Cancel
Save