|
|
@ -421,25 +421,37 @@ public class CellOtherSetPane extends AbstractCellAttrPane { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
Style elementStyle = cellElement.getStyle(); |
|
|
|
if (e.getStateChange() == ItemEvent.SELECTED) { |
|
|
|
FRFont frFont = elementStyle.getFRFont(); |
|
|
|
|
|
|
|
if (showContent.getSelectedIndex() == 3) { |
|
|
|
if (showContent.getSelectedIndex() == 3) { |
|
|
|
fileNamePane.setPreferredSize(new Dimension(100, 20)); |
|
|
|
fileNamePane.setPreferredSize(new Dimension(100, 20)); |
|
|
|
fileNameLayout.show(fileNamePane, "content"); |
|
|
|
fileNameLayout.show(fileNamePane, "content"); |
|
|
|
frFont = frFont.applyForeground(Color.blue); |
|
|
|
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_THIN); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
fileNameLayout.show(fileNamePane, "none"); |
|
|
|
fileNameLayout.show(fileNamePane, "none"); |
|
|
|
fileNamePane.setPreferredSize(new Dimension(0, 0)); |
|
|
|
fileNamePane.setPreferredSize(new Dimension(0, 0)); |
|
|
|
frFont = frFont.applyForeground(Color.black); |
|
|
|
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_NONE); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
cellElement.setStyle(elementStyle.deriveFRFont(frFont)); |
|
|
|
handleCellShowStyleChange(e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return fileNamePane; |
|
|
|
return fileNamePane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void handleCellShowStyleChange(ItemEvent itemEvent) { |
|
|
|
|
|
|
|
CellGUIAttr cellGUIAttr = getCellGUIAttr(); |
|
|
|
|
|
|
|
int selectedIndex = showContent.getSelectedIndex(); |
|
|
|
|
|
|
|
boolean showAsDownload = cellGUIAttr.isShowAsDownload(); |
|
|
|
|
|
|
|
Style elementStyle = cellElement.getStyle(); |
|
|
|
|
|
|
|
FRFont frFont = elementStyle.getFRFont(); |
|
|
|
|
|
|
|
if (!showAsDownload && selectedIndex == 3) { |
|
|
|
|
|
|
|
frFont = frFont.applyForeground(Color.blue); |
|
|
|
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_THIN); |
|
|
|
|
|
|
|
} else if (showAsDownload && selectedIndex != 3) { |
|
|
|
|
|
|
|
frFont = frFont.applyForeground(Color.black); |
|
|
|
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_NONE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
cellElement.setStyle(elementStyle.deriveFRFont(frFont)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initAllNames() { |
|
|
|
private void initAllNames() { |
|
|
|
defaultAutoRadioButton.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Follow_Paper_Settings")); |
|
|
|
defaultAutoRadioButton.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Follow_Paper_Settings")); |
|
|
@ -475,15 +487,20 @@ public class CellOtherSetPane extends AbstractCellAttrPane { |
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Other"); |
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Other"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private CellGUIAttr getCellGUIAttr() { |
|
|
|
|
|
|
|
CellGUIAttr cellGUIAttr = cellElement.getCellGUIAttr(); |
|
|
|
|
|
|
|
if (cellGUIAttr == null) { |
|
|
|
|
|
|
|
cellGUIAttr = CellGUIAttr.DEFAULT_CELLGUIATTR; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return cellGUIAttr; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void populateBean() { |
|
|
|
protected void populateBean() { |
|
|
|
this.currentPageFixedRowDataTipLabel.setText(" (" + Toolkit.i18nText("Fine-Design_Report_CellWrite_No_Page_Fixed_Row_Cell") + ")"); |
|
|
|
this.currentPageFixedRowDataTipLabel.setText(" (" + Toolkit.i18nText("Fine-Design_Report_CellWrite_No_Page_Fixed_Row_Cell") + ")"); |
|
|
|
this.pageFixedRowDataCell = null; |
|
|
|
this.pageFixedRowDataCell = null; |
|
|
|
checkPageFixedRow(); |
|
|
|
checkPageFixedRow(); |
|
|
|
CellGUIAttr cellGUIAttr = cellElement.getCellGUIAttr(); |
|
|
|
CellGUIAttr cellGUIAttr = getCellGUIAttr(); |
|
|
|
if (cellGUIAttr == null) { |
|
|
|
|
|
|
|
cellGUIAttr = CellGUIAttr.DEFAULT_CELLGUIATTR; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 支持 跟随页面设置 选项 = 不在编辑表单中的报表块 && 不在大屏模板cpt组件中
|
|
|
|
// 支持 跟随页面设置 选项 = 不在编辑表单中的报表块 && 不在大屏模板cpt组件中
|
|
|
|
boolean supportFollowTplDefine = !EastRegionContainerPane.getInstance().getCurrentMode().equals(EastRegionContainerPane.PropertyMode.FORM_REPORT) |
|
|
|
boolean supportFollowTplDefine = !EastRegionContainerPane.getInstance().getCurrentMode().equals(EastRegionContainerPane.PropertyMode.FORM_REPORT) |
|
|
|