|
|
|
@ -103,6 +103,7 @@ 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; |
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
//august:这个东西应该分成两类,一类是有单元格的情况,一类是没有单元格的情况
|
|
|
|
|
public class DBManipulationPane extends BasicBeanPane<DBManipulation> { |
|
|
|
@ -165,16 +166,16 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Choose_Submit_Type"))), |
|
|
|
|
cell(dmlConfigComboBox)).getComponent()); |
|
|
|
|
chooseTable = new ChoosePaneSupportFormula(); |
|
|
|
|
chooseTable.setTableNameComboBoxPopSize(FineUIScale.scale(160), FineUIScale.scale(320)); |
|
|
|
|
chooseTable.setTableNameComboBoxPopSize(scale(160), scale(320)); |
|
|
|
|
|
|
|
|
|
// peter:编辑的TablePane
|
|
|
|
|
JPanel editTablePane = new JPanel(new BorderLayout(FineUIScale.scale(10), 0)); |
|
|
|
|
JPanel editTablePane = new JPanel(new BorderLayout(scale(10), 0)); |
|
|
|
|
Dimension editTableDimension = createEditTablePreferredSize(); |
|
|
|
|
editTablePane.setBounds(0, 0, editTableDimension.width, editTableDimension.height); |
|
|
|
|
keyColumnValuesTable = new KeyColumnNameValueTable(); |
|
|
|
|
editTablePane.add(new UIVerticalScrollPane(keyColumnValuesTable), BorderLayout.CENTER); |
|
|
|
|
keyColumnValuesTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); |
|
|
|
|
keyColumnValuesTable.setPreferredScrollableViewportSize(FineUIScale.scale(new Dimension(280, 150))); |
|
|
|
|
keyColumnValuesTable.setPreferredScrollableViewportSize(scale(new Dimension(280, 150))); |
|
|
|
|
keyColumnValuesTable.setShowHorizontalLines(true); |
|
|
|
|
|
|
|
|
|
northPane.add(column(10, |
|
|
|
@ -190,7 +191,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
cell(bottomPane)) |
|
|
|
|
.getComponent(), BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
this.add(new UIScrollPane(contentPane)); |
|
|
|
|
this.add(contentPane); |
|
|
|
|
|
|
|
|
|
initJTableColumn(); |
|
|
|
|
|
|
|
|
@ -216,7 +217,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
List<Layouts.Cell> buttonGroup = Arrays.stream(actions).map(action -> cell(new UIButton(action))).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
checkBoxUpdatePane = new JPanel(new BorderLayout(0, 0)); |
|
|
|
|
checkBoxUpdatePane.setPreferredSize(new Dimension(120, 20)); |
|
|
|
|
checkBoxUpdatePane.setPreferredSize(scale(new Dimension(120, 20))); |
|
|
|
|
|
|
|
|
|
UpdateCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_RWA_NotChange_Unmodified")); |
|
|
|
|
UIButton helpButton = new UIButton(HEIP_ICON); |
|
|
|
@ -372,11 +373,11 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Dimension createEditTablePreferredSize() { |
|
|
|
|
return FineUIScale.scale(new Dimension(280, 180)); |
|
|
|
|
return scale(new Dimension(280, 180)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Dimension createConditionPanePreferredSize() { |
|
|
|
|
return FineUIScale.scale(new Dimension(454, 60)); |
|
|
|
|
return scale(new Dimension(454, 60)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected boolean setJpVisible() { |
|
|
|
@ -384,12 +385,12 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Dimension createJpPreferredSize() { |
|
|
|
|
return FineUIScale.scale(new Dimension(280, 60)); |
|
|
|
|
return scale(new Dimension(280, 60)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected Dimension createControlBtnPanePreferredSize() { |
|
|
|
|
return FineUIScale.scale(new Dimension(110, 20)); |
|
|
|
|
return scale(new Dimension(110, 20)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected String setControlBtnPanePosition() { |
|
|
|
|