|
|
|
@ -318,16 +318,14 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
|
textOverflowComPane.setVisible(e.getStateChange() == ItemEvent.SELECTED); |
|
|
|
|
if (e.getStateChange() == ItemEvent.SELECTED) { |
|
|
|
|
noAutoRadioButton.setSelected(true); |
|
|
|
|
textOverflowComPane.setVisible(true); |
|
|
|
|
if (showPartComboBox.getSelectedIndex() == 0) { |
|
|
|
|
showPartPane.setPreferredSize(new Dimension(70, 20)); |
|
|
|
|
showPartLayout.show(showPartPane, "content"); |
|
|
|
|
} else { |
|
|
|
|
showPartLayout.show(showPartPane, "none"); |
|
|
|
|
showPartPane.setPreferredSize(new Dimension(0, 0)); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
textOverflowComPane.setVisible(false); |
|
|
|
|
noAutoRadioButton.setSelected(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -543,11 +541,10 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
if (cellGUIAttr.isHideTextWhenOverflow()) { |
|
|
|
|
textOverflowCheckBox.setSelected(true); |
|
|
|
|
if (cellGUIAttr.isShowCharNum()) { |
|
|
|
|
showPartLayout.show(showPartPane, "content"); |
|
|
|
|
showPartComboBox.setSelectedIndex(0); |
|
|
|
|
showCharNums.setValue(cellGUIAttr.getShowCharNums()); |
|
|
|
|
} else { |
|
|
|
|
showPartLayout.show(showPartPane, "none"); |
|
|
|
|
showPartPane.setPreferredSize(new Dimension(0, 0)); |
|
|
|
|
showPartComboBox.setSelectedIndex(1); |
|
|
|
|
} |
|
|
|
|
showPartPane.setVisible(true); |
|
|
|
|
if (cellGUIAttr.isTextOverflowEllipsis()) { |
|
|
|
@ -556,6 +553,9 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
textOverflowTypeComboBox.setSelectedItem(Toolkit.i18nText("Fine-Design_Report_CellWrite_TextOverflow_NoneSymbol")); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
showPartComboBox.setSelectedIndex(0); |
|
|
|
|
showCharNums.setValue(cellGUIAttr.getShowCharNums()); |
|
|
|
|
textOverflowTypeComboBox.setSelectedIndex(0); |
|
|
|
|
textOverflowCheckBox.setSelected(false); |
|
|
|
|
} |
|
|
|
|
CellPageAttr cellPageAttr = cellElement.getCellPageAttr(); // 分页
|
|
|
|
|