Browse Source

KERNEL-9928 重构水印加载

1.改成常量
bugfix/11.0
Hoky 3 years ago
parent
commit
d1fe8799fc
  1. 3
      designer-base/src/main/java/com/fr/design/report/WatermarkSettingPane.java

3
designer-base/src/main/java/com/fr/design/report/WatermarkSettingPane.java

@ -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,7 +43,7 @@ public class WatermarkSettingPane extends AbstractTemplateServerSettingPane {
}
public void populate(WatermarkAttr watermark) {
if (watermark.getWaterMarkProvider().equals("TEMPLATE")) {
if (watermark.getWaterMarkProvider().equals(WaterMarkProvideConstant.TEMPLATE)) {
chooseComboBox.setSelectedIndex(SINGLE_SET);
watermarkPane.populate(watermark);
} else {

Loading…
Cancel
Save