Browse Source

程序数据集、数据查询、内置数据集、存储过程、

persist/11.0-arabic
obo 4 months ago
parent
commit
8faf7bbdf3
  1. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/ClassTableDataPane.java
  2. 19
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/DBTableDataPane.java
  3. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/EmbeddedTableDataDefinedPane.java
  4. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/EmbeddedTableDataPane.java
  5. 12
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java
  6. 10
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/ProcedureDataPane.java
  7. 4
      designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java

2
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/ClassTableDataPane.java

@ -1,6 +1,7 @@
package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.Parameter;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.impl.ClassTableData;
import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.DialogActionAdapter;
@ -78,6 +79,7 @@ public class ClassTableDataPane extends AbstractTableDataPane<ClassTableData> {
JPanel northPane = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize);
this.add(northPane, BorderLayout.NORTH);
this.add(initSouthPanel(), BorderLayout.SOUTH);
BidiUtils.applyOrientationByLocale(this);
}
private JPanel initSouthPanel() {
JPanel jpanel = new JPanel();

19
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/DBTableDataPane.java

@ -2,6 +2,7 @@ package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.Parameter;
import com.fr.base.ParameterHelper;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.core.db.TableProcedure;
import com.fr.data.impl.Connection;
import com.fr.data.impl.DBTableData;
@ -94,6 +95,8 @@ import java.util.List;
public class DBTableDataPane extends AbstractTableDataPane<DBTableData> implements SwitchableTableDataPane {
private static final int BOTTOM = 6;
private static final int SQL_TEXT_PANE_WIDTH = 680;
private static final int CONNECTION_TABLE_MIN_WIDTH = 230;
private static final String PREVIEW_BUTTON = Toolkit.i18nText("Fine-Design_Basic_Preview");
private static final String REFRESH_BUTTON = Toolkit.i18nText("Fine-Design_Basic_Refresh");
private ConnectionTableProcedurePane connectionTableProcedurePane;
@ -123,6 +126,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> implemen
public DBTableDataPane() {
initCards();
initContentPane();
BidiUtils.applyOrientationByLocale(this);
}
/**
@ -239,10 +243,10 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> implemen
RTextScrollPane sqlTextScrollPane = new RTextScrollPane(this.sqlTextPane);
sqlTextScrollPane.setLineNumbersEnabled(true);
sqlTextScrollPane.setBorder(new UIRoundedBorder(UIConstants.LINE_COLOR, 1, UIConstants.ARC));
sqlTextScrollPane.setPreferredSize(new Dimension(680, 600));
sqlTextScrollPane.setPreferredSize(new Dimension(SQL_TEXT_PANE_WIDTH, 600));
JPanel paraMeanPane = new JPanel(new BorderLayout());
paraMeanPane.setPreferredSize(new Dimension(680, 90));
paraMeanPane.setPreferredSize(new Dimension(SQL_TEXT_PANE_WIDTH, 90));
UILabel paraMean = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Datasource_Param_DES"));
paraMeanPane.add(paraMean, BorderLayout.CENTER);
@ -258,10 +262,15 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> implemen
box.setMinimumSize(new Dimension(300, 400));
this.connectionTableProcedurePane.setMinimumSize(new Dimension(230, 400));
this.connectionTableProcedurePane.setMinimumSize(new Dimension(CONNECTION_TABLE_MIN_WIDTH, 400));
this.connectionTableProcedurePane.setMaximumSize(new Dimension(500, 400));
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, this.connectionTableProcedurePane, sqlSplitPane);
JSplitPane mainSplitPane;
if (BidiUtils.rtl()) {
mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, sqlSplitPane, this.connectionTableProcedurePane);
} else {
mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, this.connectionTableProcedurePane, sqlSplitPane);
}
mainSplitPane.setDividerLocation(BidiUtils.rtl() ? SQL_TEXT_PANE_WIDTH - CONNECTION_TABLE_MIN_WIDTH : CONNECTION_TABLE_MIN_WIDTH);
mainSplitPane.setBorder(BorderFactory.createLineBorder(GUICoreUtils.getTitleLineBorderColor()));
mainSplitPane.setOneTouchExpandable(true);
contentPane.add(mainSplitPane, BorderLayout.CENTER);

2
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/EmbeddedTableDataDefinedPane.java

@ -1,5 +1,6 @@
package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.impl.EmbeddedTableData;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.ibutton.UIButton;
@ -40,6 +41,7 @@ public class EmbeddedTableDataDefinedPane extends BasicPane{
public EmbeddedTableDataDefinedPane() {
initComponents();
BidiUtils.applyOrientationByLocale(this);
}
protected void initComponents() {

2
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/EmbeddedTableDataPane.java

@ -1,5 +1,6 @@
package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.impl.EmbeddedTableData;
import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.DialogActionAdapter;
@ -48,6 +49,7 @@ public class EmbeddedTableDataPane extends AbstractTableDataPane<EmbeddedTableDa
*/
public EmbeddedTableDataPane() {
initComponents();
BidiUtils.applyOrientationByLocale(this);
}
// additional methods

12
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MultiTDTableDataPane.java

@ -1,6 +1,7 @@
package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.*;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.impl.ConditionTableData;
import com.fr.data.impl.MultiTDTableData;
import com.fr.data.impl.UnionTableData;
@ -59,7 +60,7 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
this.setLayout(new BorderLayout());
this.add(initNorthPane(multiName), BorderLayout.CENTER);
this.add(initSouthPanel(), BorderLayout.SOUTH);
BidiUtils.applyOrientationByLocale(this);
}
private JPanel initNorthPane(String multiName) {
@ -279,13 +280,14 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
this.name = name;
this.icon = icon;
initUI();
BidiUtils.applyOrientationByLocale(this);
}
private void initUI() {
String tmp = name;
this.setLayout(new FlowLayout(FlowLayout.LEFT));
this.setLayout(new FlowLayout(BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT));
JPanel leftPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
JPanel leftPanel = new JPanel(new FlowLayout(BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT));
leftPanel.setPreferredSize(new Dimension(190, BAR_HEIGHT));
chekbox = new UICheckBox();
UILabel tabledataName = new UILabel(tmp);
@ -316,8 +318,8 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
rightPanel.add(formulaButton);
this.setPreferredSize(new Dimension(-1, BAR_HEIGHT));
this.add(leftPanel, BorderLayout.WEST);
this.add(rightPanel, BorderLayout.CENTER);
this.add(leftPanel, BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST);
this.add(rightPanel, BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.CENTER);
}
public void populate() {

10
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/ProcedureDataPane.java

@ -2,6 +2,7 @@ package com.fr.design.data.tabledata.tabledatapane;
import com.fr.base.BaseUtils;
import com.fr.base.StoreProcedureParameter;
import com.fr.base.i18n.BidiUtils;
import com.fr.data.core.db.TableProcedure;
import com.fr.data.impl.Connection;
import com.fr.data.impl.NameDatabaseConnection;
@ -125,10 +126,17 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp
connectionTableProcedurePane.setMinimumSize(new Dimension(155, 500));
box.setMinimumSize(new Dimension(310, 400));
// 使用SplitPane
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, connectionTableProcedurePane, sqlSplitPane);
JSplitPane mainSplitPane;
if (BidiUtils.rtl()) {
mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, sqlSplitPane, connectionTableProcedurePane);
} else {
mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, connectionTableProcedurePane, sqlSplitPane);
}
mainSplitPane.setBorder(BorderFactory.createLineBorder(GUICoreUtils.getTitleLineBorderColor()));
mainSplitPane.setOneTouchExpandable(true);
this.add(mainSplitPane, BorderLayout.CENTER);
mainSplitPane.setDividerLocation(BidiUtils.rtl() ? storeProcedureContextPane.getPreferredSize().width - connectionTableProcedurePane.getPreferredSize().width : connectionTableProcedurePane.getPreferredSize().width);
BidiUtils.applyOrientationByLocale(this);
}
private void initconnectionTableProcedurePane() {

4
designer-base/src/main/java/com/fr/design/gui/itableeditorpane/UITableEditorPane.java

@ -59,8 +59,8 @@ public class UITableEditorPane<T> extends BasicPane {
pane.add(scrollPane, BorderLayout.CENTER);
initbuttonPane(action);
JPanel controlPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
controlPane.add(buttonPane, BorderLayout.EAST);
controlPane.add(l, BorderLayout.WEST);
controlPane.add(buttonPane, BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.EAST);
controlPane.add(l, BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST);
pane.add(controlPane, BorderLayout.NORTH);
}

Loading…
Cancel
Save