From ad8b0577f478b100d55323723ed7fbe4af98176e Mon Sep 17 00:00:00 2001 From: "Henry.Wang" Date: Thu, 17 Dec 2020 11:21:55 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-45441=20=E8=81=9A=E5=90=88=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8-=E8=AE=BE=E8=AE=A1-=E5=9B=BE=E8=A1=A8=E5=9D=97-?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=8A=9F=E8=83=BD=E6=8F=8F=E8=BF=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widget/WidgetBoundsPaneFactory.java | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/widget/WidgetBoundsPaneFactory.java b/designer-base/src/main/java/com/fr/design/widget/WidgetBoundsPaneFactory.java index 472b33c0f..d91f89b89 100644 --- a/designer-base/src/main/java/com/fr/design/widget/WidgetBoundsPaneFactory.java +++ b/designer-base/src/main/java/com/fr/design/widget/WidgetBoundsPaneFactory.java @@ -22,19 +22,14 @@ public class WidgetBoundsPaneFactory { public enum NameAttribute { //默认的名称 - DEFAULT(), + DEFAULT(Toolkit.i18nText("Fine-Design_Basic_Component_Position"), Toolkit.i18nText("Fine-Design_Basic_Component_Size")), //控件对应的名称 - WIDGET(Toolkit.i18nText("Fine-Design_Basic_Widget_Position"),Toolkit.i18nText("Fine-Design_Basic_Widget_Size")); + WIDGET(Toolkit.i18nText("Fine-Design_Basic_Widget_Position"), Toolkit.i18nText("Fine-Design_Basic_Widget_Size")); private String positionName; private String sizeName; - - NameAttribute() { - this.positionName = Toolkit.i18nText("Fine-Design_Basic_Component_Position"); - this.sizeName = Toolkit.i18nText("Fine-Design_Basic_Component_Size"); - } - - NameAttribute(String positionName,String sizeName) { + + NameAttribute(String positionName, String sizeName) { this.positionName = positionName; this.sizeName = sizeName; } @@ -66,7 +61,8 @@ public class WidgetBoundsPaneFactory { boundsPane.add(panel); return new UIExpandablePane(Toolkit.i18nText("Fine-Design_Form_Coords_And_Size"), 280, 24, boundsPane); } - public static JPanel createRightPane(Component com1, Component com2){ + + public static JPanel createRightPane(Component com1, Component com2) { double f = TableLayout.FILL; double p = TableLayout.PREFERRED; double[] rowSize = {p}; @@ -78,7 +74,7 @@ public class WidgetBoundsPaneFactory { return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, IntervalConstants.INTERVAL_L6, IntervalConstants.INTERVAL_L1); } - public static UIExpandablePane createAbsoluteBoundsPane(UISpinner x, UISpinner y, UISpinner width, UISpinner height,NameAttribute nameAttribute) { + public static UIExpandablePane createAbsoluteBoundsPane(UISpinner x, UISpinner y, UISpinner width, UISpinner height, NameAttribute nameAttribute) { double f = TableLayout.FILL; double p = TableLayout.PREFERRED; @@ -104,7 +100,7 @@ public class WidgetBoundsPaneFactory { } public static UIExpandablePane createAbsoluteBoundsPane(UISpinner x, UISpinner y, UISpinner width, UISpinner height) { - return createAbsoluteBoundsPane( x, y, width, height,NameAttribute.DEFAULT); + return createAbsoluteBoundsPane(x, y, width, height, NameAttribute.DEFAULT); }