Browse Source

Fixed merge conflict

fbp/release
Levy.Xie-解安森 2 months ago
parent
commit
7da78d8445
  1. 2
      designer-base/src/main/java/com/fr/design/javascript/Commit2DBJavaScriptPane.java
  2. 12
      designer-base/src/main/java/com/fr/design/javascript/JavaScriptActionPane.java
  3. 8
      designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java
  4. 13
      designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java
  5. 1
      designer-realize/src/main/java/com/fr/design/widget/ui/WritableRepeatEditorPane.java
  6. 13
      designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationInWidgetEventPane.java

2
designer-base/src/main/java/com/fr/design/javascript/Commit2DBJavaScriptPane.java

@ -59,7 +59,7 @@ public class Commit2DBJavaScriptPane extends FurtherBasicBeanPane<Commit2DBJavaS
btPane.setPreferredSize(createCallbackBtnPanePreferredSize()); btPane.setPreferredSize(createCallbackBtnPanePreferredSize());
addCallbackButton = javaScriptActionPane.createCallButton(); addCallbackButton = javaScriptActionPane.createCallButton();
btPane.add(addCallbackButton); btPane.add(addCallbackButton);
this.add(column(4, cell(cardPane), row(cell(btPane), cell(new UILabel()))).getComponent()); this.add(column(javaScriptActionPane.getVerticalGap(), cell(cardPane), row(cell(btPane), cell(new UILabel()))).getComponent());
} }
protected Dimension createCallbackBtnPanePreferredSize(){ protected Dimension createCallbackBtnPanePreferredSize(){

12
designer-base/src/main/java/com/fr/design/javascript/JavaScriptActionPane.java

@ -30,6 +30,8 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private static final int DEFAULT_GAP = 4;
private List contentDBManiPane; private List contentDBManiPane;
private JavaScriptResourceInfo resourceInfo; private JavaScriptResourceInfo resourceInfo;
@ -130,6 +132,10 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
return new String[]{WebContentUtils.FR_SUBMITINFO}; return new String[]{WebContentUtils.FR_SUBMITINFO};
} }
@Override
public int getVerticalGap() {
return JavaScriptActionPane.this.getVerticalGap();
}
}; };
callPane.populateBean(getCall()); callPane.populateBean(getCall());
@ -227,4 +233,10 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
} }
}; };
} }
public int getVerticalGap() {
return DEFAULT_GAP;
}
} }

8
designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java

@ -277,11 +277,15 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
JPanel conditionPane = this.createConditionPane(); JPanel conditionPane = this.createConditionPane();
JPanel btPane = new JPanel(FRGUIPaneFactory.createBorderLayout()); JPanel btPane = new JPanel(FRGUIPaneFactory.createBorderLayout());
btPane.add(column(4, addBottomComponent(btPane, conditionPane, eventPane);
return btPane;
}
protected void addBottomComponent(JPanel bottomPane, JPanel conditionPane, JPanel eventPane) {
bottomPane.add(column(4,
cell(FineUIUtils.wrapComponentWithTitle(conditionPane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Submit_Condition"))), cell(FineUIUtils.wrapComponentWithTitle(conditionPane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Submit_Condition"))),
row(cell(eventPane), cell(new UILabel())) row(cell(eventPane), cell(new UILabel()))
).getComponent()); ).getComponent());
return btPane;
} }
private UIButton addEventButton() { private UIButton addEventButton() {

13
designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java

@ -31,6 +31,10 @@ import java.lang.reflect.Constructor;
public class WidgetEventPane extends UIListGroupControlPane { public class WidgetEventPane extends UIListGroupControlPane {
private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1); private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1);
private static final int WIDGET_BTN_GAP = 10;
private static final int WIDGET_PANE_BTN_GAP = 4;
private Selection selection = NO_SELECTION; private Selection selection = NO_SELECTION;
private ElementCasePane object; private ElementCasePane object;
@ -105,6 +109,15 @@ public class WidgetEventPane extends UIListGroupControlPane {
return new SmartInsertDBManipulationInWidgetEventPane(epane); return new SmartInsertDBManipulationInWidgetEventPane(epane);
} }
@Override
public int getVerticalGap() {
if (getContentDBManiPane().get(0) instanceof SmartInsertDBManipulationInWidgetEventPane) {
return WIDGET_BTN_GAP;
} else {
return WIDGET_PANE_BTN_GAP;
}
}
@Override @Override
protected String title4PopupWindow() { protected String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Callback_Function"); return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Callback_Function");

1
designer-realize/src/main/java/com/fr/design/widget/ui/WritableRepeatEditorPane.java

@ -20,7 +20,6 @@ public abstract class WritableRepeatEditorPane<E extends WriteAbleRepeatEditor>
JPanel otherContentPane = this.setThirdContentPane(); JPanel otherContentPane = this.setThirdContentPane();
if (otherContentPane != null) { if (otherContentPane != null) {
contentPane.add(otherContentPane); contentPane.add(otherContentPane);
}
return contentPane; return contentPane;
} }

13
designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationInWidgetEventPane.java

@ -1,12 +1,18 @@
package com.fr.design.write.submit; package com.fr.design.write.submit;
import com.fine.theme.utils.FineUIScale; import com.fine.theme.utils.FineUIScale;
import com.fine.theme.utils.FineUIUtils;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.ElementCasePane; import com.fr.design.mainframe.ElementCasePane;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
import static com.fine.swing.ui.layout.Layouts.cell;
import static com.fine.swing.ui.layout.Layouts.column;
import static com.fine.swing.ui.layout.Layouts.row;
/** /**
* Created with IntelliJ IDEA. * Created with IntelliJ IDEA.
* User: zheng * User: zheng
@ -22,6 +28,13 @@ public class SmartInsertDBManipulationInWidgetEventPane extends SmartInsertDBMan
protected void addComponent(JPanel mainPane,JScrollPane addPane){ protected void addComponent(JPanel mainPane,JScrollPane addPane){
} }
protected void addBottomComponent(JPanel bottomPane, JPanel conditionPane, JPanel eventPane) {
bottomPane.add(column(10,
cell(conditionPane),
row(cell(eventPane), cell(new UILabel()))
).getComponent());
}
protected Dimension createConditionPanePreferredSize(){ protected Dimension createConditionPanePreferredSize(){
return FineUIScale.scale(new Dimension(454, 20)); return FineUIScale.scale(new Dimension(454, 20));
} }

Loading…
Cancel
Save