|
|
|
@ -357,7 +357,8 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
showPartPane = new JPanel(showPartLayout); |
|
|
|
|
showCharNums = new UISpinner(0, Integer.MAX_VALUE, 1, 10); |
|
|
|
|
JPanel showPartNumPane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
showPartNumPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_Nums")), BorderLayout.WEST); |
|
|
|
|
UILabel showCharLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_Nums") + ":"); |
|
|
|
|
showPartNumPane.add(showCharLabel, BorderLayout.WEST); |
|
|
|
|
showPartNumPane.add(showCharNums, BorderLayout.CENTER); |
|
|
|
|
showPartPane.add(new JPanel(), "none"); |
|
|
|
|
showPartPane.add(showPartNumPane, "content"); |
|
|
|
@ -377,12 +378,20 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
|
|
|
|
|
textOverflowTypeComboBox = new UIComboBox(new String[]{Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_Ellipsis"), Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_NoneSymbol")}); |
|
|
|
|
UILabel showPartLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_ShowPart") + ":"); |
|
|
|
|
showCharLabel.setPreferredSize(new Dimension(showPartLabel.getPreferredSize().width, 15)); |
|
|
|
|
JPanel pane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
pane.add(showPartLabel, BorderLayout.WEST); |
|
|
|
|
pane.add(showPartComboBox, BorderLayout.CENTER); |
|
|
|
|
UILabel hideTypeLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_HideType") + ":"); |
|
|
|
|
JPanel hidePane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
hidePane.add(hideTypeLabel, BorderLayout.WEST); |
|
|
|
|
hidePane.add(textOverflowTypeComboBox, BorderLayout.CENTER); |
|
|
|
|
Component[][] textOverflowComponents = new Component[][]{ |
|
|
|
|
new Component[]{showPartLabel, showPartComboBox, showPartPane}, |
|
|
|
|
new Component[]{hideTypeLabel, textOverflowTypeComboBox, null} |
|
|
|
|
new Component[]{pane}, |
|
|
|
|
new Component[]{showPartPane}, |
|
|
|
|
new Component[]{hidePane} |
|
|
|
|
}; |
|
|
|
|
JPanel textOverflowComPane = TableLayoutHelper.createTableLayoutPane(textOverflowComponents, new double[]{p, p}, new double[]{p, f, p}); |
|
|
|
|
JPanel textOverflowComPane = TableLayoutHelper.createTableLayoutPane(textOverflowComponents, new double[]{p, p, p}, new double[]{p, f, p}); |
|
|
|
|
textOverflowComPane.setVisible(false); |
|
|
|
|
textOverflowCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_HideWhenOverflow")); |
|
|
|
|
textOverflowCheckBox.addItemListener(new ItemListener() { |
|
|
|
|