|
|
|
@ -3,6 +3,7 @@ package com.fr.design.write.submit;
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.swing.ui.layout.Spacer; |
|
|
|
|
import com.fine.theme.utils.FineClientProperties; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
@ -98,6 +99,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|
//august:这个东西应该分成两类,一类是有单元格的情况,一类是没有单元格的情况
|
|
|
|
|
public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
@ -153,6 +155,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
|
|
dmlConfigComboBox = new UIComboBox(DML_CONFIG_TYPES); |
|
|
|
|
dmlConfigComboBox.putClientProperty(FineClientProperties.COMBO_BOX_TYPE, FineClientProperties.ADAPTIVE_COMBO_BOX); |
|
|
|
|
|
|
|
|
|
JPanel typePane = new JPanel(new BorderLayout()); |
|
|
|
|
typePane.add(row(10, |
|
|
|
@ -162,7 +165,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
chooseTable.setTableNameComboBoxPopSize(FineUIScale.scale(160), FineUIScale.scale(320)); |
|
|
|
|
|
|
|
|
|
// peter:编辑的TablePane
|
|
|
|
|
JPanel editTablePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
JPanel editTablePane = new JPanel(new BorderLayout(FineUIScale.scale(10), 0)); |
|
|
|
|
editTablePane.setBounds(0, 0, FineUIScale.scale(280), FineUIScale.scale(180)); |
|
|
|
|
keyColumnValuesTable = new KeyColumnNameValueTable(); |
|
|
|
|
editTablePane.add(new UIScrollPane(keyColumnValuesTable), BorderLayout.CENTER); |
|
|
|
@ -707,6 +710,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
|
|
|
|
|
// 设置column1的editor
|
|
|
|
|
columnsComboBox = new UIComboBox(new DefaultComboBoxModel()); |
|
|
|
|
|
|
|
|
|
columnsComboBox.setRenderer(new UIComboBoxRenderer() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|