Browse Source

新增控件提交面板

fbp/release
renekton 3 months ago
parent
commit
7b08ede652
  1. 35
      designer-base/src/main/java/com/fr/design/write/submit/DBManipulationInWdigetEventNoCellPane.java
  2. 6
      designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java
  3. 3
      designer-form/src/main/java/com/fr/design/designer/properties/EventPropertyTable.java

35
designer-base/src/main/java/com/fr/design/write/submit/DBManipulationInWdigetEventNoCellPane.java

@ -0,0 +1,35 @@
package com.fr.design.write.submit;
import com.fine.theme.utils.FineUIScale;
import com.fr.design.editor.editor.Editor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import static com.fine.theme.utils.FineUIScale.scale;
public class DBManipulationInWdigetEventNoCellPane extends DBManipulationPane {
public DBManipulationInWdigetEventNoCellPane() {
super();
}
public DBManipulationInWdigetEventNoCellPane(Editor<?>[] v_Types) {
super(v_Types);
}
protected Dimension createEditTablePreferredSize() {
return scale(new Dimension(280, 150));
}
protected Dimension getPreferredScrollableViewportSize() {
return scale(new Dimension(280, 120));
}
protected Dimension createControlBtnPanePreferredSize(){
return FineUIScale.scale(new Dimension(110, 20));
}
protected String setControlBtnPanePosition(){
return BorderLayout.EAST;
}
}

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

@ -175,7 +175,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
keyColumnValuesTable = new KeyColumnNameValueTable(); keyColumnValuesTable = new KeyColumnNameValueTable();
editTablePane.add(new UIVerticalScrollPane(keyColumnValuesTable), BorderLayout.CENTER); editTablePane.add(new UIVerticalScrollPane(keyColumnValuesTable), BorderLayout.CENTER);
keyColumnValuesTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); keyColumnValuesTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
keyColumnValuesTable.setPreferredScrollableViewportSize(scale(new Dimension(280, 150))); keyColumnValuesTable.setPreferredScrollableViewportSize(getPreferredScrollableViewportSize());
keyColumnValuesTable.setShowHorizontalLines(true); keyColumnValuesTable.setShowHorizontalLines(true);
northPane.add(column(10, northPane.add(column(10,
@ -200,6 +200,10 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
addListeners(); addListeners();
} }
protected Dimension getPreferredScrollableViewportSize() {
return scale(new Dimension(280, 150));
}
public void setSubMitName(String subMitName) { public void setSubMitName(String subMitName) {
this.subMitName = subMitName; this.subMitName = subMitName;
} }

3
designer-form/src/main/java/com/fr/design/designer/properties/EventPropertyTable.java

@ -7,6 +7,7 @@ import com.fr.design.javascript.EmailPane;
import com.fr.design.javascript.JavaScriptActionPane; import com.fr.design.javascript.JavaScriptActionPane;
import com.fr.design.mainframe.FormDesigner; import com.fr.design.mainframe.FormDesigner;
import com.fr.design.widget.EventCreator; import com.fr.design.widget.EventCreator;
import com.fr.design.write.submit.DBManipulationInWdigetEventNoCellPane;
import com.fr.design.write.submit.DBManipulationPane; import com.fr.design.write.submit.DBManipulationPane;
import com.fr.design.editor.ValueEditorPaneFactory; import com.fr.design.editor.ValueEditorPaneFactory;
import com.fr.design.designer.creator.XCreator; import com.fr.design.designer.creator.XCreator;
@ -44,7 +45,7 @@ public class EventPropertyTable extends UIListControlPane {
return new JavaScriptActionPane() { return new JavaScriptActionPane() {
@Override @Override
protected DBManipulationPane createDBManipulationPane() { protected DBManipulationPane createDBManipulationPane() {
return new DBManipulationPane(ValueEditorPaneFactory.formEditors()); return new DBManipulationInWdigetEventNoCellPane(ValueEditorPaneFactory.formEditors());
} }
@Override @Override

Loading…
Cancel
Save