From 4fa1ea5a83298788cb41a3f2787f201d0ab0e34b Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 17:26:51 +0800 Subject: [PATCH 01/24] =?UTF-8?q?INO-21074=20=E6=96=B0=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/DesignerFrameFileDealerPane.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java b/designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java index 16c8ef46ca..88dee5bf6c 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java @@ -2,6 +2,7 @@ package com.fr.design.mainframe; import com.fr.base.BaseUtils; import com.fr.base.extension.FileExtension; +import com.fr.base.i18n.BidiUtils; import com.fr.base.vcs.DesignerMode; import com.fr.chartx.TwoTuple; import com.fr.design.DesignModelAdapter; @@ -655,7 +656,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt UILabel newNameLabel = new UILabel(Toolkit.i18nText( "Fine-Design_Basic_Enter_New_Folder_Name") ); - newNameLabel.setHorizontalAlignment(SwingConstants.RIGHT); + newNameLabel.setHorizontalAlignment(SwingConstants.TRAILING); newNameLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); // 文件名输入框 @@ -680,7 +681,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt nameField.selectAll(); nameField.setPreferredSize(new Dimension(180, 20)); - JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 5)); + JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 5)); topPanel.setBorder(BorderFactory.createEmptyBorder(15, 15, 0, 15)); topPanel.add(newNameLabel); topPanel.add(nameField); @@ -701,14 +702,14 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt // 重名提示 warnLabel = new UILabel(); warnLabel.setPreferredSize(new Dimension(300, 50)); - warnLabel.setHorizontalAlignment(SwingConstants.LEFT); + warnLabel.setHorizontalAlignment(SwingConstants.LEADING); warnLabel.setVerticalAlignment(SwingConstants.TOP); warnLabel.setForeground(Color.RED); warnLabel.setVisible(false); JPanel midPanel = new JPanel(new BorderLayout()); midPanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 15)); - midPanel.add(warnLabel, BorderLayout.WEST); + midPanel.add(warnLabel, BorderLayout.LINE_START); // 确认按钮 confirmButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Confirm")); @@ -733,7 +734,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt } }); - JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0)); + JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 10, 0)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 15, 10, 10)); bottomPanel.add(confirmButton); bottomPanel.add(cancelButton); From decd03f1c6e270a791031907b057a868b965fa31 Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 17:37:09 +0800 Subject: [PATCH 02/24] =?UTF-8?q?INO-21074=20=E6=96=87=E4=BB=B6=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/actions/file/RenameAction.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/actions/file/RenameAction.java b/designer-base/src/main/java/com/fr/design/actions/file/RenameAction.java index 842292ce2a..1f3db22ae2 100644 --- a/designer-base/src/main/java/com/fr/design/actions/file/RenameAction.java +++ b/designer-base/src/main/java/com/fr/design/actions/file/RenameAction.java @@ -144,7 +144,7 @@ public class RenameAction extends UpdateAction { fnf.isDirectory() ? "Fine-Design_Basic_Enter_New_Folder_Name" : "Fine-Design_Basic_Enter_New_File_Name") ); - newNameLabel.setHorizontalAlignment(SwingConstants.RIGHT); + newNameLabel.setHorizontalAlignment(SwingConstants.TRAILING); newNameLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); //newNameLabel.setPreferredSize(new Dimension(118, 15)); @@ -170,7 +170,7 @@ public class RenameAction extends UpdateAction { nameField.selectAll(); nameField.setPreferredSize(new Dimension(170, 20)); - JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 5)); + JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 5)); topPanel.setBorder(BorderFactory.createEmptyBorder(15, 15, 0, 15)); topPanel.add(newNameLabel); topPanel.add(nameField); @@ -180,14 +180,14 @@ public class RenameAction extends UpdateAction { // 重名提示 warnLabel = new UILabel(); warnLabel.setPreferredSize(new Dimension(300, 50)); - warnLabel.setHorizontalAlignment(SwingConstants.LEFT); + warnLabel.setHorizontalAlignment(SwingConstants.LEADING); warnLabel.setVerticalAlignment(SwingConstants.TOP); warnLabel.setForeground(Color.RED); warnLabel.setVisible(false); JPanel midPanel = new JPanel(new BorderLayout()); midPanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 15)); - midPanel.add(warnLabel, BorderLayout.WEST); + midPanel.add(warnLabel, BorderLayout.LINE_START); // 确认按钮 confirmButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Confirm")); @@ -210,7 +210,7 @@ public class RenameAction extends UpdateAction { }); - JPanel buttonsPane = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0)); + JPanel buttonsPane = new JPanel(new FlowLayout(FlowLayout.TRAILING, 10, 0)); buttonsPane.setBorder(BorderFactory.createEmptyBorder(10, 15, 10, 10)); buttonsPane.add(confirmButton); buttonsPane.add(cancelButton); From f8facaeefdf4c719064251283fbe1f7f756390ec Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 18:46:09 +0800 Subject: [PATCH 03/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DefaultTemplateTreeDefineProcessor.java | 4 ++- .../fr/design/file/TemplateDirTreePane.java | 2 ++ .../fr/design/gui/itextfield/UITextField.java | 4 ++- .../pane/TemplateDirTreeSearchPane.java | 35 ++++++++++++++----- 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java b/designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java index 9bee877aee..80e3bd4987 100644 --- a/designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java +++ b/designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java @@ -1,5 +1,6 @@ package com.fr.design.file; +import com.fr.base.i18n.BidiUtils; import com.fr.design.actions.UpdateAction; import com.fr.design.actions.file.DelFileAction; import com.fr.design.actions.file.LocateAction; @@ -395,10 +396,11 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi } }); - JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0)); + JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 10, 0)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 15, 10, 10)); bottomPanel.add(confirmButton); bottomPanel.add(cancelButton); + BidiUtils.applyOrientationByLocale(bottomPanel); this.add(bottomPanel, BorderLayout.SOUTH); this.setSize(new Dimension(600, 400)); diff --git a/designer-base/src/main/java/com/fr/design/file/TemplateDirTreePane.java b/designer-base/src/main/java/com/fr/design/file/TemplateDirTreePane.java index 08531b895c..bb64597017 100644 --- a/designer-base/src/main/java/com/fr/design/file/TemplateDirTreePane.java +++ b/designer-base/src/main/java/com/fr/design/file/TemplateDirTreePane.java @@ -1,6 +1,7 @@ package com.fr.design.file; import com.fr.base.FRContext; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.itree.filetree.TemplateDirTree; import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode; import com.fr.design.i18n.Toolkit; @@ -40,6 +41,7 @@ public class TemplateDirTreePane extends JPanel { remindPane = new TemplateDirSearchRemindPane(getTemplateDirTree()); this.add(remindPane, BorderLayout.CENTER); + BidiUtils.applyOrientationByLocale(this); } public TemplateDirTree getTemplateDirTree() { diff --git a/designer-base/src/main/java/com/fr/design/gui/itextfield/UITextField.java b/designer-base/src/main/java/com/fr/design/gui/itextfield/UITextField.java index 10edf9fe00..2bcb7182c0 100644 --- a/designer-base/src/main/java/com/fr/design/gui/itextfield/UITextField.java +++ b/designer-base/src/main/java/com/fr/design/gui/itextfield/UITextField.java @@ -1,5 +1,6 @@ package com.fr.design.gui.itextfield; +import com.fr.base.i18n.BidiUtils; import com.fr.common.inputevent.InputEventBaseOnOS; import com.fr.design.event.GlobalNameListener; import com.fr.design.event.GlobalNameObserver; @@ -71,6 +72,7 @@ public class UITextField extends JTextField implements UIObserver, GlobalNameObs public void init() { InputEventBaseOnOS.addBasicEditInputMap(this); initListener(); + BidiUtils.applyOrientationByLocale(this); } protected void initListener() { @@ -174,7 +176,7 @@ public class UITextField extends JTextField implements UIObserver, GlobalNameObs RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.setColor(getDisabledTextColor()); - g.drawString(placeholder, getInsets().left, pG.getFontMetrics() + g.drawString(placeholder, BidiUtils.rtl() ? (int) (this.getBounds().getWidth() - getInsets().left - g.getFontMetrics().stringWidth(placeholder)) : getInsets().left, pG.getFontMetrics() .getMaxAscent() + getInsets().top + 1); } diff --git a/designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateDirTreeSearchPane.java b/designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateDirTreeSearchPane.java index 07636ce631..8cec19347c 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateDirTreeSearchPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateDirTreeSearchPane.java @@ -1,5 +1,6 @@ package com.fr.design.mainframe.manager.search.searcher.control.pane; +import com.fr.base.i18n.BidiUtils; import com.fr.base.svg.IconUtils; import com.fr.design.constants.UIConstants; import com.fr.design.file.TemplateDirTreePane; @@ -13,6 +14,7 @@ import com.fr.design.search.event.TreeSearchStatusChangeListener; import com.fr.stable.StringUtils; import javax.swing.BorderFactory; +import javax.swing.Box; import javax.swing.JPanel; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; @@ -64,23 +66,41 @@ public class TemplateDirTreeSearchPane extends JPanel implements TreeSearchStatu searchPane = new JPanel(FRGUIPaneFactory.createBorderLayout()); searchPane.setBorder(BorderFactory.createLineBorder(UIConstants.TOOLBAR_BORDER_COLOR)); searchPane.setBackground(Color.WHITE); + + // 中间输入框 + initSearchTextField(); + + searchPane.add(createSearchPanel(), BorderLayout.LINE_START); + searchPane.add(searchTextField, BorderLayout.CENTER); + searchPane.add(createReturnPanel(), BorderLayout.LINE_END); + BidiUtils.applyOrientationByLocale(searchPane); + } + + private JPanel createSearchPanel() { // 左侧搜索图标 UILabel searchLabel = new UILabel(IconUtils.readIcon("/com/fr/design/images/data/search")); - searchLabel.setBorder(BorderFactory.createEmptyBorder(0, 12, 0, 0)); + JPanel searchLabelPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); + searchLabelPanel.setBackground(Color.WHITE); + searchLabelPanel.setBorder(BorderFactory.createEmptyBorder()); + searchLabelPanel.add(Box.createHorizontalStrut(5)); + searchLabelPanel.add(searchLabel); searchLabel.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { // do nothing } }); + return searchLabelPanel; + } - // 中间输入框 - initSearchTextField(); - + private JPanel createReturnPanel() { // 右侧返回图标 UILabel returnLabel = new UILabel(IconUtils.readIcon("/com/fr/design/images/data/clear")); + JPanel returnLabelPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); + returnLabelPanel.setBackground(Color.WHITE); + returnLabelPanel.add(returnLabel); + returnLabelPanel.add(Box.createHorizontalStrut(5)); returnLabel.setToolTipText(Toolkit.i18nText("Fine-Design_Tree_Search_Return")); - returnLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 11)); returnLabel.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { @@ -88,10 +108,7 @@ public class TemplateDirTreeSearchPane extends JPanel implements TreeSearchStatu TemplateDirTreePane.getInstance().refreshDockingView(); } }); - - searchPane.add(searchLabel, BorderLayout.WEST); - searchPane.add(searchTextField, BorderLayout.CENTER); - searchPane.add(returnLabel, BorderLayout.EAST); + return returnLabelPanel; } private void initSearchTextField() { From d8116c1300d4eca5232417f652eefee1efe8c0ee Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 19:13:29 +0800 Subject: [PATCH 04/24] =?UTF-8?q?INO-21074=20=E9=A1=B5=E9=9D=A2-=E9=80=89?= =?UTF-8?q?=E9=A1=B9-=E5=90=AF=E5=8A=A8=E9=A1=B5=E9=85=8D=E7=BD=AElabel?= =?UTF-8?q?=E6=96=B9=E5=90=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/utils/gui/UIComponentUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/utils/gui/UIComponentUtils.java b/designer-base/src/main/java/com/fr/design/utils/gui/UIComponentUtils.java index d2e9704658..5c205b799a 100644 --- a/designer-base/src/main/java/com/fr/design/utils/gui/UIComponentUtils.java +++ b/designer-base/src/main/java/com/fr/design/utils/gui/UIComponentUtils.java @@ -1,5 +1,6 @@ package com.fr.design.utils.gui; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.core.UITextComponent; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.general.ComparatorUtils; @@ -20,7 +21,10 @@ import java.util.Locale; // Noninstantiable utility class public class UIComponentUtils { - private static final String HTML_TAG_TPL = ""; + /** + * html内联css实现文本靠右对齐rtl + */ + private static final String HTML_TAG_TPL = BidiUtils.rtl() ? "" : ""; private static final String HTML_BODY_TAG = ""; private static final String HTML_TAG = ""; private static final int MIN_WIDTH = 10; From 3a523c6b736d41918b0be341954e3cbf85d0dcc1 Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 19:18:16 +0800 Subject: [PATCH 05/24] =?UTF-8?q?INO-21074=20=E9=A1=B5=E9=9D=A2-=E9=80=89?= =?UTF-8?q?=E9=A1=B9-=E7=A1=AE=E5=AE=9A=E6=8C=89=E9=92=AE=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer-base/src/main/java/com/fr/design/dialog/UIDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/designer-base/src/main/java/com/fr/design/dialog/UIDialog.java b/designer-base/src/main/java/com/fr/design/dialog/UIDialog.java index 6837436d3f..af73fe1e47 100644 --- a/designer-base/src/main/java/com/fr/design/dialog/UIDialog.java +++ b/designer-base/src/main/java/com/fr/design/dialog/UIDialog.java @@ -90,6 +90,7 @@ public abstract class UIDialog extends JDialog { this.setModal(true); GUICoreUtils.centerWindow(this); + BidiUtils.applyOrientationByLocale(contentPane); } private JPanel createControlButtonPane() { From 267630ca478cefdd4f353b07f5e14987efaa8129 Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 20:06:00 +0800 Subject: [PATCH 06/24] =?UTF-8?q?INO-21074=20=E7=89=88=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E5=BF=83rtl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/gui/itableeditorpane/UITableModelAdapter.java | 2 ++ .../mainframe/vcs/ui/AbstractSupportSelectTablePane.java | 7 ++++--- .../design/mainframe/vcs/ui/ToolTipTableCellRenderer.java | 2 ++ .../java/com/fr/design/mainframe/vcs/ui/VcsNewPane.java | 4 +--- .../com/fr/design/mainframe/vcs/ui/VcsOperatorPane.java | 2 ++ 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java index 8b046f3d08..93e27700f5 100644 --- a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java +++ b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java @@ -1,6 +1,7 @@ package com.fr.design.gui.itableeditorpane; import com.fr.base.BaseUtils; +import com.fr.base.i18n.BidiUtils; import com.fr.design.dialog.FineJOptionPane; import com.fr.design.mainframe.DesignerContext; import com.fr.log.FineLoggerFactory; @@ -41,6 +42,7 @@ public abstract class UITableModelAdapter extends AbstractTableModel implemen protected UITableModelAdapter(String[] columnNames) { this.columnNames = columnNames; table = new JTable(this); + BidiUtils.applyOrientationByLocale(table); table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); // TableRowSorter rowSorter = new TableRowSorter(this); // table.setRowSorter(rowSorter); diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/AbstractSupportSelectTablePane.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/AbstractSupportSelectTablePane.java index 75733121de..3e71162c7e 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/AbstractSupportSelectTablePane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/AbstractSupportSelectTablePane.java @@ -1,5 +1,6 @@ package com.fr.design.mainframe.vcs.ui; +import com.fr.base.i18n.BidiUtils; import com.fr.base.svg.IconUtils; import com.fr.design.data.tabledata.tabledatapane.loading.TipsPane; import com.fr.design.dialog.BasicPane; @@ -307,8 +308,8 @@ public abstract class AbstractSupportSelectTablePane exte UILabel label = new UILabel(valueStr); if (needIcon4Head(column)) { label.setIcon(IconUtils.readIcon("/com/fr/design/standard/vcslist/vcs_sort")); - label.setHorizontalTextPosition(JLabel.LEFT); - label.setHorizontalAlignment(SwingConstants.LEFT); + label.setHorizontalTextPosition(JLabel.LEADING); + label.setHorizontalAlignment(SwingConstants.LEADING); } selectBox.setHorizontalAlignment(SwingConstants.CENTER); selectBox.setBorderPainted(true); @@ -317,7 +318,7 @@ public abstract class AbstractSupportSelectTablePane exte component.setBackground(tableHeader.getBackground()); component.setFont(tableHeader.getFont()); component.setBorder(UIManager.getBorder("TableHeader.cellBorder")); - return component; + return BidiUtils.applyOrientationByLocale(component); } diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/ToolTipTableCellRenderer.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/ToolTipTableCellRenderer.java index bfb10e2057..c91b918d02 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/ToolTipTableCellRenderer.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/ToolTipTableCellRenderer.java @@ -1,5 +1,6 @@ package com.fr.design.mainframe.vcs.ui; +import com.fr.base.i18n.BidiUtils; import com.fr.general.GeneralUtils; import com.fr.stable.StringUtils; @@ -25,6 +26,7 @@ public class ToolTipTableCellRenderer extends DefaultTableCellRenderer { String toolTipText = GeneralUtils.objectToString(value); if (StringUtils.isNotEmpty(toolTipText)) { ((JLabel) component).setToolTipText(toolTipText); + BidiUtils.setOrientationByLocale(component); } } return component; diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsNewPane.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsNewPane.java index 11da401226..126c078c33 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsNewPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsNewPane.java @@ -17,8 +17,6 @@ import com.fr.design.mainframe.vcs.common.VcsCacheFileNodeFile; import com.fr.design.mainframe.vcs.common.VcsHelper; import com.fr.file.FileNodeFILE; import com.fr.file.filetree.FileNode; -import com.fr.file.filetree.FileNodes; -import com.fr.io.utils.ResourceIOUtils; import com.fr.report.InconsistentLockException; import com.fr.report.entity.VcsEntity; import com.fr.stable.StableUtils; @@ -36,7 +34,7 @@ import javax.swing.JOptionPane; import javax.swing.JTable; import javax.swing.SwingWorker; import javax.swing.UIManager; -import java.awt.*; +import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsOperatorPane.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsOperatorPane.java index ce4db1e0d7..c83a9f3299 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsOperatorPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsOperatorPane.java @@ -1,6 +1,7 @@ package com.fr.design.mainframe.vcs.ui; +import com.fr.base.i18n.BidiUtils; import com.fr.design.layout.FRGUIPaneFactory; import javax.swing.JComponent; @@ -35,6 +36,7 @@ public class VcsOperatorPane extends JPanel { value.setCursor(new Cursor(Cursor.HAND_CURSOR)); this.add(value); } + BidiUtils.applyOrientationByLocale(this); } } From 418890183685e662a8d47e26de83b398ed5acce7 Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 22:33:10 +0800 Subject: [PATCH 07/24] =?UTF-8?q?INO-21074=20=E7=89=88=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=BC=8F=E6=8F=90=E4=B8=80=E4=B8=AA=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/mainframe/vcs/ui/RecyclePane.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/RecyclePane.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/RecyclePane.java index 1aacaa9d7b..4289b96635 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/RecyclePane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/RecyclePane.java @@ -1,11 +1,13 @@ package com.fr.design.mainframe.vcs.ui; +import com.fr.base.i18n.BidiUtils; import com.fr.base.svg.IconUtils; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.FineJOptionPane; import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.itextfield.UITextField; import com.fr.design.i18n.Toolkit; +import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.vcs.VcsOperatorWorker; import com.fr.design.mainframe.vcs.TableEntity; @@ -109,7 +111,7 @@ public class RecyclePane extends AbstractSupportSelectTablePane protected void initTableTopPane() { tableTopPane = new JPanel(); tableTopPane.setLayout(new BorderLayout()); - JPanel leftPane = new JPanel(); + JPanel leftPane = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); JPanel rightPane = new JPanel(); //左边面板,包含搜索icon+搜索框 if (isNeedSearch()) { @@ -134,8 +136,9 @@ public class RecyclePane extends AbstractSupportSelectTablePane deleteLabel.setEnabled(false); rightPane.add(deleteLabel); } - tableTopPane.add(leftPane, BorderLayout.EAST); - tableTopPane.add(rightPane, BorderLayout.WEST); + tableTopPane.add(leftPane, BorderLayout.LINE_END); + tableTopPane.add(rightPane, BorderLayout.LINE_START); + BidiUtils.applyOrientationByLocale(tableTopPane); } From 7b714fd69bb99ae9da968fc9603c044c1d01212a Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 22:47:28 +0800 Subject: [PATCH 08/24] =?UTF-8?q?INO-21074=20=E6=96=B0=E5=BB=BA=E5=86=B3?= =?UTF-8?q?=E7=AD=96=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/widget/ui/designer/EmptyLayoutPane.java | 2 +- .../com/fr/design/widget/ui/designer/NewFormPane.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/widget/ui/designer/EmptyLayoutPane.java b/designer-form/src/main/java/com/fr/design/widget/ui/designer/EmptyLayoutPane.java index f17b258f90..706a4db67b 100644 --- a/designer-form/src/main/java/com/fr/design/widget/ui/designer/EmptyLayoutPane.java +++ b/designer-form/src/main/java/com/fr/design/widget/ui/designer/EmptyLayoutPane.java @@ -20,7 +20,7 @@ public class EmptyLayoutPane extends PredefinedLayoutPane { BorderFactory.createEmptyBorder(39, 105, 0, 105), BorderFactory.createDashedBorder(Color.BLACK, 1.0f, 2.0f, 2.0f, true) )); - UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_New_Empty_Template")); + UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_New_Empty_Template"), UILabel.LEFT); label.setBorder(BorderFactory.createEmptyBorder(0, 78, 30, 0)); this.add(newFormIcon, BorderLayout.NORTH); diff --git a/designer-form/src/main/java/com/fr/design/widget/ui/designer/NewFormPane.java b/designer-form/src/main/java/com/fr/design/widget/ui/designer/NewFormPane.java index f5121bef1f..9410c40acc 100644 --- a/designer-form/src/main/java/com/fr/design/widget/ui/designer/NewFormPane.java +++ b/designer-form/src/main/java/com/fr/design/widget/ui/designer/NewFormPane.java @@ -1,5 +1,6 @@ package com.fr.design.widget.ui.designer; +import com.fr.base.i18n.BidiUtils; import com.fr.base.iofile.attr.TemplateLayoutIdAttrMark; import com.fr.design.DesignerEnvManager; import com.fr.design.border.UITitledMatteBorder; @@ -62,10 +63,11 @@ public class NewFormPane extends BasicPane { newFormModel = NewFormModel.getInstance(); this.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 0)); this.setLayout(FRGUIPaneFactory.createBorderLayout()); - this.add(createModuleListPane(), BorderLayout.WEST); + this.add(createModuleListPane(), BorderLayout.LINE_START); this.add(createTemplateManagePane(), BorderLayout.CENTER); initWindow(); DesignerCloudURLManager.getInstance().testConnect(); + BidiUtils.applyOrientationByLocale(this); } private void initWindow() { @@ -166,8 +168,8 @@ public class NewFormPane extends BasicPane { JPanel jPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); jPanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0)); jPanel.setPreferredSize(new Dimension(1, 129)); - jPanel.add(createNewTemplatePane(), BorderLayout.WEST); - jPanel.add(createSwitchButtonPane(), BorderLayout.EAST); + jPanel.add(createNewTemplatePane(), BorderLayout.LINE_START); + jPanel.add(createSwitchButtonPane(), BorderLayout.LINE_END); return jPanel; } From d2b09bf5a762e102e647ca62bc38c2346f05b30c Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 22:51:46 +0800 Subject: [PATCH 09/24] =?UTF-8?q?INO-21074=20=E6=89=93=E5=BC=80=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/file/FILEChooserPane.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/designer-base/src/main/java/com/fr/file/FILEChooserPane.java b/designer-base/src/main/java/com/fr/file/FILEChooserPane.java index 72e9014024..d6076a3f79 100644 --- a/designer-base/src/main/java/com/fr/file/FILEChooserPane.java +++ b/designer-base/src/main/java/com/fr/file/FILEChooserPane.java @@ -302,7 +302,7 @@ public class FILEChooserPane extends BasicPane { locationPane.add(locationBtnPane = new LocationButtonPane(), BorderLayout.CENTER); mkdirButton = initMkdirButton(); - locationPane.add(mkdirButton, BorderLayout.EAST); + locationPane.add(mkdirButton, BorderLayout.LINE_END); JPanel centerLeftPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); // centerLeftPanel.setLayout(FRGUIPaneFactory.createBorderLayout()); @@ -474,7 +474,7 @@ public class FILEChooserPane extends BasicPane { centerRightPane.add(fileNamePane, BorderLayout.SOUTH); Component[][] outComponents = new Component[][]{ - new Component[]{GUICoreUtils.createBorderPane(new UILabel(Toolkit.i18nText("Fine-Design_Basic_App_File_Lookup_range") + ":"), BorderLayout.WEST), locationPane}, + new Component[]{GUICoreUtils.createBorderPane(new UILabel(Toolkit.i18nText("Fine-Design_Basic_App_File_Lookup_range") + ":"), BorderLayout.LINE_START), locationPane}, new Component[]{centerLeftPanel, centerRightPane}}; JPanel contentPane = TableLayoutHelper.createTableLayoutPane(outComponents, new double[]{TableLayout.PREFERRED, TableLayout.FILL}, new double[]{TableLayout.PREFERRED, TableLayout.FILL}); @@ -1781,7 +1781,7 @@ public class FILEChooserPane extends BasicPane { UILabel newNameLabel = new UILabel(Toolkit.i18nText( "Fine-Design_Basic_Enter_New_Folder_Name") ); - newNameLabel.setHorizontalAlignment(SwingConstants.RIGHT); + newNameLabel.setHorizontalAlignment(SwingConstants.TRAILING); newNameLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); newNameLabel.setPreferredSize(new Dimension(118, 15)); @@ -1804,7 +1804,7 @@ public class FILEChooserPane extends BasicPane { nameField.selectAll(); nameField.setPreferredSize(new Dimension(180, 20)); - JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 5)); + JPanel topPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 5)); topPanel.setBorder(BorderFactory.createEmptyBorder(15, 15, 0, 15)); topPanel.add(newNameLabel); topPanel.add(nameField); @@ -1825,13 +1825,13 @@ public class FILEChooserPane extends BasicPane { // 重名提示 warnLabel = new UILabel(); warnLabel.setPreferredSize(new Dimension(300, 30)); - warnLabel.setHorizontalAlignment(SwingConstants.LEFT); + warnLabel.setHorizontalAlignment(SwingConstants.LEADING); warnLabel.setForeground(Color.RED); warnLabel.setVisible(false); JPanel midPanel = new JPanel(new BorderLayout()); midPanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 15)); - midPanel.add(warnLabel, BorderLayout.WEST); + midPanel.add(warnLabel, BorderLayout.LINE_START); // 确认按钮 confirmButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Confirm")); @@ -1853,7 +1853,7 @@ public class FILEChooserPane extends BasicPane { } }); - JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); + JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING)); bottomPanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 15)); bottomPanel.add(confirmButton); bottomPanel.add(cancelButton); @@ -1879,6 +1879,7 @@ public class FILEChooserPane extends BasicPane { this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); GUICoreUtils.centerWindow(this); this.setVisible(true); + BidiUtils.applyOrientationByLocale(this); } private void confirmClose() { From 8c03f0965771bc373e26cd09c3afaa4a30a829ab Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 23:07:11 +0800 Subject: [PATCH 10/24] =?UTF-8?q?INO-21074=20=E5=85=B3=E9=97=AD=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E5=99=A8=E4=BF=9D=E5=AD=98=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/file/SaveSomeTemplatePane.java | 25 +++++++++++-------- .../java/com/fr/design/gui/ilist/UIList.java | 13 ++++++++-- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/file/SaveSomeTemplatePane.java b/designer-base/src/main/java/com/fr/design/file/SaveSomeTemplatePane.java index 1517309ef1..84947e19e4 100644 --- a/designer-base/src/main/java/com/fr/design/file/SaveSomeTemplatePane.java +++ b/designer-base/src/main/java/com/fr/design/file/SaveSomeTemplatePane.java @@ -1,9 +1,9 @@ package com.fr.design.file; +import com.fr.base.i18n.BidiUtils; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.DialogActionAdapter; -import com.fr.design.dialog.FineJOptionPane; import com.fr.design.event.StateChangeListener; import com.fr.design.gui.icheckbox.UICheckBox; import com.fr.design.gui.icontainer.UIScrollPane; @@ -15,14 +15,19 @@ import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.JTemplate; import com.fr.general.ComparatorUtils; - import com.fr.log.FineLoggerFactory; import org.jetbrains.annotations.Nullable; -import javax.swing.*; -import javax.swing.border.EmptyBorder; -import java.awt.*; -import java.awt.event.*; +import javax.swing.AbstractListModel; +import javax.swing.BorderFactory; +import javax.swing.DefaultListCellRenderer; +import javax.swing.JList; +import javax.swing.JPanel; +import java.awt.BorderLayout; +import java.awt.Component; +import java.awt.Window; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; import java.util.ArrayList; /** @@ -73,8 +78,8 @@ public class SaveSomeTemplatePane extends BasicPane { }); } - UILabel tip = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select_The_Source_To_Save")); - this.add(tip, BorderLayout.NORTH); + UILabel tip = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select_The_Source_To_Save"), UILabel.LEADING); + this.add(BidiUtils.setOrientationByLocale(tip), BorderLayout.NORTH); templatesChoosePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); UIScrollPane scrollPane = new UIScrollPane(templatesChoosePane); this.add(scrollPane, BorderLayout.CENTER); @@ -144,7 +149,7 @@ public class SaveSomeTemplatePane extends BasicPane { templatesChoosePane.add(chooseAllCheckBox, BorderLayout.NORTH); templatesChoosePane.add(templatesList, BorderLayout.CENTER); - + BidiUtils.applyOrientationByLocale(templatesChoosePane); } /** @@ -263,7 +268,7 @@ public class SaveSomeTemplatePane extends BasicPane { super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); templateCheckBoxes[index] = (UICheckBox) value; templateCheckBoxes[index].setBackground(list.getBackground()); - return templateCheckBoxes[index]; + return BidiUtils.applyOrientationByLocale(templateCheckBoxes[index]); } } diff --git a/designer-base/src/main/java/com/fr/design/gui/ilist/UIList.java b/designer-base/src/main/java/com/fr/design/gui/ilist/UIList.java index 6970ed6767..099aff33ef 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ilist/UIList.java +++ b/designer-base/src/main/java/com/fr/design/gui/ilist/UIList.java @@ -6,8 +6,17 @@ import com.fr.design.gui.itooltip.UIToolTip; import com.fr.design.mainframe.JTemplate; import com.fr.stable.StringUtils; -import javax.swing.*; -import java.awt.*; +import javax.swing.Icon; +import javax.swing.ImageIcon; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JList; +import javax.swing.JToolTip; +import javax.swing.ListCellRenderer; +import javax.swing.ListModel; +import java.awt.Component; +import java.awt.Point; +import java.awt.Rectangle; import java.awt.event.MouseEvent; import java.util.Vector; From 0a8fe7a35663bf3076bfaeb1867a877b804625cf Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 23:40:30 +0800 Subject: [PATCH 11/24] =?UTF-8?q?INO-21074=20=E5=B7=A5=E4=BD=9C=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/gui/ilable/UILabel.java | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java b/designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java index 1e7e0ff7c3..8d68135ed6 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java +++ b/designer-base/src/main/java/com/fr/design/gui/ilable/UILabel.java @@ -1,6 +1,5 @@ package com.fr.design.gui.ilable; -import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.core.UITextComponent; import com.fr.design.utils.gui.GUICoreUtils; import com.fr.stable.StringUtils; @@ -28,23 +27,19 @@ public class UILabel extends JLabel implements UITextComponent { if (image != null && text != null) { setIconTextGap(4); } - adjustLabelTextForRTL(); } public UILabel(String text, int horizontalAlignment) { super(text, horizontalAlignment); - adjustLabelTextForRTL(); } public UILabel(String text) { super(text); - adjustLabelTextForRTL(); } public UILabel(String text, boolean enable) { super(text); this.setEnabled(enable); - adjustLabelTextForRTL(); } public UILabel(Icon image, int horizontalAlignment) { @@ -69,27 +64,6 @@ public class UILabel extends JLabel implements UITextComponent { return preferredSize; } - /** - * 调整label的名称以适配RTL - *

- * 代码中有大量的国际化文本拼接冒号或者其他硬编码字符串创建Label的行为,RTL时名称需要分段反转,把一部分放在UILabel构造方法中进行调整,目前处理的场景如下: - *

    - *
  • label名+冒号(:)
  • - *
  • Item 2
  • - *
  • Item 3
  • - *
- */ - private void adjustLabelTextForRTL() { - if (!BidiUtils.rtl()) { - return; - } - String text = this.getText(); - if (StringUtils.isNotEmpty(text) && text.length() > 1 && StringUtils.equals(String.valueOf(text.charAt(text.length() - 1)), COLON)) { - text = COLON + text.substring(0, text.length() - 1); - this.setText(text); - } - } - public static void main(String[] args) { // UILabel label = new UILabel("shishi",SwingConstants.LEFT); JFrame frame = new JFrame("Test"); From d30d718b67231f78bd2c48fd401ba780133fdd3f Mon Sep 17 00:00:00 2001 From: obo Date: Wed, 14 Aug 2024 23:55:59 +0800 Subject: [PATCH 12/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/actions/TableDataSourceAction.java | 14 +++++++------- .../com/fr/design/i18n/dimension_ar.properties | 1 + .../com/fr/design/i18n/dimension_en.properties | 1 + .../com/fr/design/i18n/dimension_ja_JP.properties | 1 + .../com/fr/design/i18n/dimension_ko_KR.properties | 1 + .../com/fr/design/i18n/dimension_zh.properties | 1 + .../com/fr/design/i18n/dimension_zh_TW.properties | 1 + 7 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 designer-base/src/main/resources/com/fr/design/i18n/dimension_ar.properties diff --git a/designer-base/src/main/java/com/fr/design/actions/TableDataSourceAction.java b/designer-base/src/main/java/com/fr/design/actions/TableDataSourceAction.java index f47341ae7f..a6474c833f 100644 --- a/designer-base/src/main/java/com/fr/design/actions/TableDataSourceAction.java +++ b/designer-base/src/main/java/com/fr/design/actions/TableDataSourceAction.java @@ -1,18 +1,18 @@ package com.fr.design.actions; -import javax.swing.SwingUtilities; -import com.fr.base.svg.IconUtils; -import com.fr.design.data.DesignTableDataManager; import com.fr.data.TableDataSource; +import com.fr.design.DesignModelAdapter; +import com.fr.design.data.DesignTableDataManager; import com.fr.design.data.datapane.ReportTableDataPane; import com.fr.design.data.datapane.TableDataTreePane; import com.fr.design.data.tabledata.ResponseDataSourceChange; -import com.fr.design.DesignModelAdapter; -import com.fr.design.mainframe.JTemplate; -import com.fr.design.menu.KeySetUtils; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.DialogActionAdapter; +import com.fr.design.i18n.DesignSizeI18nManager; +import com.fr.design.mainframe.JTemplate; +import com.fr.design.menu.KeySetUtils; +import javax.swing.SwingUtilities; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -42,7 +42,7 @@ public class TableDataSourceAction extends TemplateComponentAction Date: Thu, 15 Aug 2024 16:55:46 +0800 Subject: [PATCH 13/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86=E9=A2=84=E8=A7=88=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/data/datapane/preview/PreviewTablePane.java | 2 +- .../desensitization/view/PreviewTableDesensitizationPane.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java index ffac1388c6..c342961f30 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java @@ -164,7 +164,7 @@ public class PreviewTablePane extends BasicPane { // 预览行数面板 northPane.add(initPreviewNumberPane(), BorderLayout.CENTER); // 脱敏预览设置面板 - northPane.add(initDesensitizationPane(), BorderLayout.EAST); + northPane.add(initDesensitizationPane(), BorderLayout.LINE_END); return northPane; } diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/PreviewTableDesensitizationPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/PreviewTableDesensitizationPane.java index 01c92e333f..26f3f03295 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/PreviewTableDesensitizationPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/PreviewTableDesensitizationPane.java @@ -56,7 +56,7 @@ public class PreviewTableDesensitizationPane extends JPanel { * 初始化面板 */ private void initComponents() { - this.setLayout(new FlowLayout(FlowLayout.LEFT)); + this.setLayout(new FlowLayout(FlowLayout.LEADING)); this.add(initDesensitizationLabel()); this.add(initToolBar()); this.add(initPreviewButton()); From 04ad48f4559bb6ea4c169c3275bd6c32f29f4f74 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 17:02:04 +0800 Subject: [PATCH 14/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-=E6=9F=A5=E7=9C=8B=E6=89=A7=E8=A1=8Csql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datapane/preview/sql/PreviewPerformedSqlPane.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java index c827a17ebe..eff054b068 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java @@ -3,6 +3,7 @@ package com.fr.design.data.datapane.preview.sql; import com.fr.base.Parameter; import com.fr.base.ParameterHelper; import com.fr.base.ParameterMapNameSpace; +import com.fr.base.i18n.BidiUtils; import com.fr.data.impl.DBTableData; import com.fr.data.impl.EscapeSqlHelper; import com.fr.data.operator.DataOperator; @@ -108,7 +109,7 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener { textBuilder.append(""); tipLabel.setToolTipText(textBuilder.toString()); tipPanel.add(tipLabel, BorderLayout.SOUTH); - topPanel.add(tipPanel, BorderLayout.EAST); + topPanel.add(tipPanel, BorderLayout.LINE_END); } else { imageLabel = new UILabel(UIManager.getIcon("OptionPane.informationIcon")); messagePanel = FRGUIPaneFactory.createVerticalFlowLayout_S_Pane(true); @@ -117,7 +118,7 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener { } imagePanel.add(imageLabel); - topPanel.add(imagePanel, BorderLayout.WEST); + topPanel.add(imagePanel, BorderLayout.LINE_START); topPanel.add(messagePanel, BorderLayout.CENTER); topPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10)); @@ -148,7 +149,7 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener { okButton.addActionListener(this); bottomPanel = FRGUIPaneFactory.createBorderLayout_L_Pane(); bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); - bottomPanel.add(okButton, BorderLayout.EAST); + bottomPanel.add(okButton, BorderLayout.LINE_END); this.setTitle(Toolkit.i18nText("Fine-Design_Basic_Preview_Performed_Sql")); this.setResizable(false); @@ -162,7 +163,7 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener { close(); } }); - + BidiUtils.applyOrientationByLocale(this); GUICoreUtils.centerWindow(this); } From 5f56cc83658b58b1e84c94a0e3201beb208ec1c6 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 22:19:23 +0800 Subject: [PATCH 15/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-sql=E9=A2=84=E8=A7=88=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9D=A0=E5=8F=B3=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/data/datapane/preview/CopyableJTable.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java index a452a4d371..59273c0ce2 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java @@ -1,17 +1,21 @@ package com.fr.design.data.datapane.preview; +import com.fr.base.i18n.BidiUtils; import com.fr.design.base.clipboard.ClipboardHelper; import com.fr.design.gui.itable.SortableJTable; import com.fr.design.gui.itable.TableSorter; import com.fr.log.FineLoggerFactory; import com.fr.stable.os.OperatingSystem; -import javax.swing.*; -import javax.swing.table.DefaultTableCellRenderer; +import javax.swing.JComponent; +import javax.swing.JTable; import javax.swing.table.JTableHeader; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumnModel; -import java.awt.*; +import java.awt.Color; +import java.awt.Component; +import java.awt.Point; +import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.Transferable; @@ -214,7 +218,7 @@ public class CopyableJTable extends SortableJTable { } else { comp.setBackground(this.getBackground()); } - return comp; + return BidiUtils.applyOrientationByLocale(comp); } From 0c20f91524f3b711e9cd503862916d8fee67ea13 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 22:23:25 +0800 Subject: [PATCH 16/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-=E5=8F=82=E6=95=B0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/parameter/ParameterInputPane.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java b/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java index 7c8f675b1e..9fc900705a 100644 --- a/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java +++ b/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java @@ -6,6 +6,7 @@ package com.fr.design.parameter; import com.fr.base.BaseFormula; import com.fr.base.StoreProcedureParameter; import com.fr.base.Utils; +import com.fr.base.i18n.BidiUtils; import com.fr.data.impl.storeproc.StoreProcedureConstants; import com.fr.design.dialog.BasicPane; import com.fr.design.editor.ValueEditorPane; @@ -110,7 +111,7 @@ public class ParameterInputPane extends BasicPane { if (StringUtils.isNotBlank(parameter.getName())) { parameterDisplayName = parameter.getName(); } - contentPane.add(flowTableLayoutHelper.createLabelFlowPane(parameterDisplayName + ":", editPane)); + contentPane.add(flowTableLayoutHelper.createLabelFlowPane(BidiUtils.concatenateStrings(parameterDisplayName + ":"), editPane)); //add editor to parameter hashtable. initTextListener(textF); @@ -217,7 +218,7 @@ public class ParameterInputPane extends BasicPane { UILabel textLabel = new UILabel(text); centerPane.add(textLabel); - textLabel.setHorizontalAlignment(SwingConstants.LEFT); + textLabel.setHorizontalAlignment(SwingConstants.LEADING); this.labelList.add(textLabel); centerPane.add(comp); From 91e4002eee2867a85e9f992877cad98dbc0dfc34 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 22:52:22 +0800 Subject: [PATCH 17/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-=E5=8F=82=E6=95=B0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E5=AE=8C=E5=96=84=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/parameter/ParameterInputPane.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java b/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java index 9fc900705a..9d226ac116 100644 --- a/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java +++ b/designer-base/src/main/java/com/fr/design/parameter/ParameterInputPane.java @@ -105,13 +105,13 @@ public class ParameterInputPane extends BasicPane { textF.populate(pv); JPanel editPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); editPane.add(textF, BorderLayout.CENTER); - editPane.setPreferredSize(new Dimension(180, editPane.getPreferredSize().height)); + editPane.setPreferredSize(new Dimension(270, editPane.getPreferredSize().height)); String parameterDisplayName = parameter.getName(); if (StringUtils.isNotBlank(parameter.getName())) { parameterDisplayName = parameter.getName(); } - contentPane.add(flowTableLayoutHelper.createLabelFlowPane(BidiUtils.concatenateStrings(parameterDisplayName + ":"), editPane)); + contentPane.add(flowTableLayoutHelper.createLabelFlowPane(BidiUtils.concatenateStrings(parameterDisplayName, ":"), editPane)); //add editor to parameter hashtable. initTextListener(textF); From 6be04533e09a4eec1b1742cbac26a275e121dd2f Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 22:53:14 +0800 Subject: [PATCH 18/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-sql=E5=8F=82=E6=95=B0=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E9=9D=A0=E5=8F=B3=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/gui/itableeditorpane/UITableEditorPane.java | 2 +- .../design/gui/itableeditorpane/UITableModelAdapter.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java index acda647b8a..cc1dcf2bc0 100644 --- a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java +++ b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java @@ -62,7 +62,7 @@ public class UITableEditorPane extends BasicPane { controlPane.add(buttonPane, BorderLayout.LINE_END); controlPane.add(l, BorderLayout.LINE_START); pane.add(controlPane, BorderLayout.NORTH); - + BidiUtils.applyOrientationByLocale(pane); } public UITableModelAdapter getTableModel() { diff --git a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java index 93e27700f5..2b917c828e 100644 --- a/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java +++ b/designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableModelAdapter.java @@ -41,7 +41,12 @@ public abstract class UITableModelAdapter extends AbstractTableModel implemen protected UITableModelAdapter(String[] columnNames) { this.columnNames = columnNames; - table = new JTable(this); + table = new JTable(this) { + @Override + public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { + return BidiUtils.applyOrientationByLocale(super.prepareRenderer(renderer, row, column)); + } + }; BidiUtils.applyOrientationByLocale(table); table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); // TableRowSorter rowSorter = new TableRowSorter(this); From 48a7c86c102e4d1136dacd09e56a5cc9621f6e37 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 23:23:25 +0800 Subject: [PATCH 19/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-=E5=85=B3=E8=81=94=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E7=AD=89=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/tabledata/tabledatapane/MultiTDTableDataPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java b/designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java index 28aaf86d45..bb326fafb9 100644 --- a/designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java +++ b/designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java @@ -313,7 +313,7 @@ public class MultiTDTableDataPane extends AbstractTableDataPane stringTableDataWrapperEntry : resMap.entrySet()) { TableDataWrapper tableDataWrappe = stringTableDataWrapperEntry.getValue(); From db62955ed57cbad131dbafb89c2d7b93ac57a451 Mon Sep 17 00:00:00 2001 From: obo Date: Fri, 16 Aug 2024 15:16:40 +0800 Subject: [PATCH 21/24] =?UTF-8?q?INO-21074=20=E6=A8=A1=E7=89=88web?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/gui/icontainer/UIScrollPane.java | 2 ++ .../src/main/java/com/fr/design/webattr/ToolBarDragPane.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/icontainer/UIScrollPane.java b/designer-base/src/main/java/com/fr/design/gui/icontainer/UIScrollPane.java index 55ba64b0e9..613af2ce8e 100644 --- a/designer-base/src/main/java/com/fr/design/gui/icontainer/UIScrollPane.java +++ b/designer-base/src/main/java/com/fr/design/gui/icontainer/UIScrollPane.java @@ -1,5 +1,6 @@ package com.fr.design.gui.icontainer; +import com.fr.base.i18n.BidiUtils; import com.fr.design.constants.UIConstants; import com.fr.design.gui.iscrollbar.UIScrollBar; @@ -31,6 +32,7 @@ public class UIScrollPane extends JScrollPane { this.getHorizontalScrollBar().setBackground(Color.WHITE); this.getVerticalScrollBar().setOpaque(true); this.getVerticalScrollBar().setBackground(Color.WHITE); + BidiUtils.applyOrientationByLocale(this); } @Override diff --git a/designer-realize/src/main/java/com/fr/design/webattr/ToolBarDragPane.java b/designer-realize/src/main/java/com/fr/design/webattr/ToolBarDragPane.java index 14ab5383ce..db639e93c7 100644 --- a/designer-realize/src/main/java/com/fr/design/webattr/ToolBarDragPane.java +++ b/designer-realize/src/main/java/com/fr/design/webattr/ToolBarDragPane.java @@ -50,7 +50,7 @@ public class ToolBarDragPane extends WidgetToolBarPane { private int row = 7; private DefaultTableModel toolbarButtonTableModel; private JTable layoutTable; - private UICheckBox isUseToolBarCheckBox = new UICheckBox(BidiUtils.concatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_ToolBar"), ":")); // 是否使用工具栏 + private UICheckBox isUseToolBarCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_ToolBar") + ":"); // 是否使用工具栏 private boolean isEnabled; public ToolBarDragPane() { @@ -296,7 +296,7 @@ public class ToolBarDragPane extends WidgetToolBarPane { this.setText(StringUtils.EMPTY); this.setIcon(null); } - return this; + return BidiUtils.applyOrientationByLocale(this); } }; From c9bc43f27d90e00919084ebdb713806d0f7eeb97 Mon Sep 17 00:00:00 2001 From: obo Date: Fri, 16 Aug 2024 15:29:03 +0800 Subject: [PATCH 22/24] =?UTF-8?q?INO-21074=20=E5=8F=82=E6=95=B0=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/editor/editor/BooleanEditor.java | 4 +++- .../src/main/java/com/fr/design/editor/editor/DateEditor.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java b/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java index af2589d455..73bc3a4144 100644 --- a/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java +++ b/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java @@ -3,6 +3,7 @@ */ package com.fr.design.editor.editor; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.icheckbox.UICheckBox; import com.fr.design.layout.FRGUIPaneFactory; @@ -40,7 +41,7 @@ public class BooleanEditor extends Editor { public BooleanEditor(Boolean value) { this.setLayout(FRGUIPaneFactory.createBorderLayout()); booleanCheckBox = new UICheckBox("true"); - this.add(booleanCheckBox, BorderLayout.CENTER); + this.add(booleanCheckBox, BorderLayout.LINE_START); this.setValue(value); this.setName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Parameter_Boolean")); booleanCheckBox.addItemListener(new ItemListener() { @@ -49,6 +50,7 @@ public class BooleanEditor extends Editor { fireStateChanged(); } }); + BidiUtils.applyOrientationByLocale(this); } public JComponent getEditComp() { diff --git a/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java b/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java index c40161ba6c..9591255a37 100644 --- a/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java +++ b/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java @@ -3,6 +3,7 @@ */ package com.fr.design.editor.editor; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.date.UIDatePicker; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.general.GeneralContext; @@ -73,10 +74,11 @@ public class DateEditor extends Editor { } }); this.uiDatePicker.setFocusTraversalKeysEnabled(false); - this.add(uiDatePicker, BorderLayout.CENTER); + this.add(uiDatePicker, BorderLayout.LINE_START); this.setValue(value); this.setName(name); + BidiUtils.applyOrientationByLocale(this); } //uidatepicker的setstyle方法不起作用,先粗暴地加个构造方法 From 7d4c08462037a53b7de98003addbbd658c6005e6 Mon Sep 17 00:00:00 2001 From: obo Date: Fri, 16 Aug 2024 16:24:42 +0800 Subject: [PATCH 23/24] =?UTF-8?q?INO-21074=20js=E7=BC=96=E8=BE=91=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/javascript/JSContentPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/javascript/JSContentPane.java b/designer-base/src/main/java/com/fr/design/javascript/JSContentPane.java index a01efd9e9f..5656bd3391 100644 --- a/designer-base/src/main/java/com/fr/design/javascript/JSContentPane.java +++ b/designer-base/src/main/java/com/fr/design/javascript/JSContentPane.java @@ -279,7 +279,7 @@ public class JSContentPane extends BasicPane { */ private String createFunctionTitle(String[] args) { StringBuffer sb = new StringBuffer(); - sb.append("
function("); + sb.append("
function("); int width = titleWidth; FontMetrics cellFM = this.getFontMetrics(this.getFont()); int tempwidth = 0; From f7cd247cff9806208daa553f550949aace2d5e81 Mon Sep 17 00:00:00 2001 From: obo Date: Fri, 16 Aug 2024 16:32:49 +0800 Subject: [PATCH 24/24] =?UTF-8?q?INO-21074=20=E5=A1=AB=E6=8A=A5=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/webattr/EditToolBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java b/designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java index 7481fede65..6fb19db893 100644 --- a/designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java +++ b/designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java @@ -511,7 +511,7 @@ public class EditToolBar extends BasicPane { isVerify = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Verify_Data_Verify")); failSubmit = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Verify_Fail_Still_Submit")); isCurSheet = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Only_Submit_Current_Sheet")); - JPanel submitPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_S_Pane(); + JPanel submitPane = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, VerticalFlowLayout.TOP, 0, 0); submitPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Form_Button_Property"), null)); submitPane.add(isVerify); submitPane.add(failSubmit);