From 34cbc22da1ccc9f23f8b89c938aa2f8cd2a157c4 Mon Sep 17 00:00:00 2001 From: renekton Date: Fri, 20 Sep 2024 16:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E5=8E=BB=E6=8E=89ht?= =?UTF-8?q?ml=E6=8D=A2=E8=A1=8C&=E6=9C=8D=E5=8A=A1=E5=99=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=A8=A1=E6=9D=BFweb=E5=B1=9E=E6=80=A7=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E5=AF=BC=E5=87=BA=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/WidgetThemeDisplayConfigPane.java | 8 +++++--- .../java/com/fr/design/javascript/ListenerEditPane.java | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java b/designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java index 62f460d8fe..532eb8f532 100644 --- a/designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java +++ b/designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java @@ -1,5 +1,7 @@ package com.fr.widgettheme.designer; +import com.fine.theme.utils.FineUIStyle; +import com.fine.theme.utils.FineUIUtils; import com.fr.design.dialog.BasicPane; import com.fr.design.gui.icheckbox.UICheckBox; import com.fr.design.gui.ilable.UILabel; @@ -9,6 +11,7 @@ import com.fr.design.layout.FRGUIPaneFactory; import com.fr.widgettheme.control.attr.WidgetDisplayEnhanceMarkAttr; import javax.swing.JPanel; +import javax.swing.JTextArea; import java.awt.BorderLayout; import java.awt.Color; @@ -39,9 +42,8 @@ public class WidgetThemeDisplayConfigPane extends BasicPane { northPane.add(row(cell(widgetEnhance)).getComponent()); JPanel southPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); - UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_Widget_Display_Enhance_Tip")); - label.setForeground(Color.GRAY); - southPane.add(label); + JTextArea tipText = FineUIUtils.createAutoWrapTipLabel(Toolkit.i18nText("Fine-Design_Widget_Display_Enhance_Tip")); + southPane.add(tipText); this.add(column(10, cell(northPane), cell(southPane)).getComponent()); } diff --git a/designer-realize/src/main/java/com/fr/design/javascript/ListenerEditPane.java b/designer-realize/src/main/java/com/fr/design/javascript/ListenerEditPane.java index 643ba75175..d54b8d5522 100644 --- a/designer-realize/src/main/java/com/fr/design/javascript/ListenerEditPane.java +++ b/designer-realize/src/main/java/com/fr/design/javascript/ListenerEditPane.java @@ -73,12 +73,13 @@ public class ListenerEditPane extends BasicBeanPane { nameText = new UITextField(); nameText.setEditable(false); final List style = new ArrayList<>(Arrays.asList(JS, DBCOMMIT, CUSTOMACTION, EMAIL, MOBILEPOPUP)); - styleBox = new UIComboBox(style.toArray()); - styleBox.putClientProperty(FineClientProperties.COMBO_BOX_TYPE, FineClientProperties.ADAPTIVE_COMBO_BOX); boolean workbook = DesignerContext.getDesignerFrame().getSelectedJTemplate().isJWorkBook(); if (workbook) { style.add(EXPORT); } + styleBox = new UIComboBox(style.toArray()); + styleBox.putClientProperty(FineClientProperties.COMBO_BOX_TYPE, FineClientProperties.ADAPTIVE_COMBO_BOX); + //事件名 JPanel eventName = row(LayoutConstants.HGAP_LARGE, cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Event_Name"))),