|
|
@ -29,6 +29,7 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
private UICheckBox isShowAsImageBox; |
|
|
|
private UICheckBox isShowAsImageBox; |
|
|
|
private UICheckBox isAutoScaleBox; |
|
|
|
private UICheckBox isAutoScaleBox; |
|
|
|
private UICheckBox isTDHeavyBox; |
|
|
|
private UICheckBox isTDHeavyBox; |
|
|
|
|
|
|
|
private UICheckBox isTDHeavyUseLightBox; |
|
|
|
|
|
|
|
|
|
|
|
public PageWebSettingPane() { |
|
|
|
public PageWebSettingPane() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
@ -48,14 +49,15 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
isShowAsImageBox = new UICheckBox(Inter.getLocText("Is_Paint_Page")); |
|
|
|
isShowAsImageBox = new UICheckBox(Inter.getLocText("Is_Paint_Page")); |
|
|
|
isAutoScaleBox = new UICheckBox(Inter.getLocText("IS_Auto_Scale")); |
|
|
|
isAutoScaleBox = new UICheckBox(Inter.getLocText("IS_Auto_Scale")); |
|
|
|
isTDHeavyBox = new UICheckBox(Inter.getLocText("IS_TD_HEAVY_EXPORT"), false); |
|
|
|
isTDHeavyBox = new UICheckBox(Inter.getLocText("IS_TD_HEAVY_EXPORT"), false); |
|
|
|
|
|
|
|
isTDHeavyUseLightBox = new UICheckBox(Inter.getLocText("USE_TD_HEAVY_LIGHT"), false); |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double[] columnSize = { p,p,p}; |
|
|
|
double[] columnSize = { p,p,p}; |
|
|
|
double[] rowSize = { p, p,p,p }; |
|
|
|
double[] rowSize = { p, p,p,p }; |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Report_Show_Location") + ":", UILabel.RIGHT),buttonpane,null}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Report_Show_Location") + ":", UILabel.RIGHT), buttonpane,null}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("PageSetup-Page") + ":", UILabel.RIGHT),isShowAsImageBox,isAutoScaleBox}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("PageSetup-Page") + ":", UILabel.RIGHT), isShowAsImageBox, isAutoScaleBox}, |
|
|
|
new Component[]{null,isTDHeavyBox,null} |
|
|
|
new Component[]{null, isTDHeavyBox, isTDHeavyUseLightBox} |
|
|
|
} ; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
return TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
} |
|
|
|
} |
|
|
@ -69,6 +71,7 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
isShowAsImageBox.setEnabled(isSelected); |
|
|
|
isShowAsImageBox.setEnabled(isSelected); |
|
|
|
isAutoScaleBox.setEnabled(isSelected); |
|
|
|
isAutoScaleBox.setEnabled(isSelected); |
|
|
|
isTDHeavyBox.setEnabled(isSelected); |
|
|
|
isTDHeavyBox.setEnabled(isSelected); |
|
|
|
|
|
|
|
isTDHeavyUseLightBox.setEnabled(isSelected); |
|
|
|
} |
|
|
|
} |
|
|
|
protected void setDefault(){ |
|
|
|
protected void setDefault(){ |
|
|
|
super.setDefault(); |
|
|
|
super.setDefault(); |
|
|
@ -76,6 +79,7 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
isShowAsImageBox.setSelected(false); |
|
|
|
isShowAsImageBox.setSelected(false); |
|
|
|
isAutoScaleBox.setSelected(false); |
|
|
|
isAutoScaleBox.setSelected(false); |
|
|
|
isTDHeavyBox.setSelected(false); |
|
|
|
isTDHeavyBox.setSelected(false); |
|
|
|
|
|
|
|
isTDHeavyUseLightBox.setSelected(false); |
|
|
|
} |
|
|
|
} |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void populateSubWebSettingrBean(WebPage webPage) { |
|
|
|
protected void populateSubWebSettingrBean(WebPage webPage) { |
|
|
@ -91,6 +95,7 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
isShowAsImageBox.setSelected(webPage.isShowAsImage()); |
|
|
|
isShowAsImageBox.setSelected(webPage.isShowAsImage()); |
|
|
|
isAutoScaleBox.setSelected(webPage.isAutoScaleWhenEmbeddedInIframe()); |
|
|
|
isAutoScaleBox.setSelected(webPage.isAutoScaleWhenEmbeddedInIframe()); |
|
|
|
isTDHeavyBox.setSelected(webPage.isTDHeavy()); |
|
|
|
isTDHeavyBox.setSelected(webPage.isTDHeavy()); |
|
|
|
|
|
|
|
isTDHeavyUseLightBox.setSelected(webPage.isLightTDHeavy()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -100,6 +105,7 @@ public class PageWebSettingPane extends WebSettingPane<WebPage> { |
|
|
|
webPage.setShowAsImage(isShowAsImageBox.isSelected()); |
|
|
|
webPage.setShowAsImage(isShowAsImageBox.isSelected()); |
|
|
|
webPage.setAutoScaleWhenEmbeddedInIframe(isAutoScaleBox.isSelected()); |
|
|
|
webPage.setAutoScaleWhenEmbeddedInIframe(isAutoScaleBox.isSelected()); |
|
|
|
webPage.setTDHeavy(isTDHeavyBox.isSelected()); |
|
|
|
webPage.setTDHeavy(isTDHeavyBox.isSelected()); |
|
|
|
|
|
|
|
webPage.setLightTDHeavy(isTDHeavyUseLightBox.isSelected()); |
|
|
|
return webPage; |
|
|
|
return webPage; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|