|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.report; |
|
|
|
|
|
|
|
|
|
import com.fr.base.iofile.attr.WaterMarkProvideConstant; |
|
|
|
|
import com.fr.base.iofile.attr.WatermarkAttr; |
|
|
|
|
import com.fr.design.dialog.AbstractTemplateServerSettingPane; |
|
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
@ -42,13 +43,13 @@ public class WatermarkSettingPane extends AbstractTemplateServerSettingPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void populate(WatermarkAttr watermark) { |
|
|
|
|
if (!watermark.isValid()) { |
|
|
|
|
if (watermark.getWaterMarkProvider().equals(WaterMarkProvideConstant.TEMPLATE)) { |
|
|
|
|
chooseComboBox.setSelectedIndex(SINGLE_SET); |
|
|
|
|
watermarkPane.populate(watermark); |
|
|
|
|
} else { |
|
|
|
|
chooseComboBox.setSelectedIndex(SERVER_SET); |
|
|
|
|
populateServerSettings(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
chooseComboBox.setSelectedIndex(SINGLE_SET); |
|
|
|
|
watermarkPane.populate(watermark); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|