|
|
|
@ -18,6 +18,7 @@ import com.fr.design.gui.itableeditorpane.ParameterTableModel;
|
|
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditAction; |
|
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditorPane; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
@ -67,7 +68,7 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
|
|
|
|
|
JPanel jpanel = new JPanel(); |
|
|
|
|
jpanel.setLayout(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
|
|
|
|
JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.LEADING)); |
|
|
|
|
UILabel chooseTableData = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Tabledata_Select_To_Merge")); |
|
|
|
|
UIButton previewButton = new UIButton(); |
|
|
|
|
previewButton.setIcon(BaseUtils.readIcon("/com/fr/web/images/preview.png")); |
|
|
|
@ -77,6 +78,8 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
|
|
|
|
|
northPanel.add(previewButton); |
|
|
|
|
|
|
|
|
|
centerPanel = new JPanel(); |
|
|
|
|
centerPanel.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
BidiUtils.applyOrientationByLocale(centerPanel, northPanel); |
|
|
|
|
JScrollPane js = new JScrollPane(centerPanel); |
|
|
|
|
js.getVerticalScrollBar().setUnitIncrement(20);// 鼠标滚动大小
|
|
|
|
|
js.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); |
|
|
|
@ -95,7 +98,8 @@ public class MultiTDTableDataPane extends AbstractTableDataPane<MultiTDTableData
|
|
|
|
|
int len = resMap.size(); |
|
|
|
|
// 10个正好不会出现滚动条
|
|
|
|
|
centerPanel.setLayout(new GridLayout(len < MIN_BAR_NUMBER ? MIN_BAR_NUMBER : len + 1, 1)); |
|
|
|
|
centerPanel.add(headLabel); |
|
|
|
|
centerPanel.add(headLabel, BorderLayout.LINE_START); |
|
|
|
|
BidiUtils.applyOrientationByLocale(centerPanel); |
|
|
|
|
|
|
|
|
|
for (Entry<String, TableDataWrapper> stringTableDataWrapperEntry : resMap.entrySet()) { |
|
|
|
|
TableDataWrapper tableDataWrappe = stringTableDataWrapperEntry.getValue(); |
|
|
|
|