Browse Source

REPORT-32073【冒烟测试】模板web属性-工具栏编辑之后,点确定,弹窗无法缩回

feature/big-screen
hades 5 years ago
parent
commit
9e55fcdc50
  1. 7
      designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java

7
designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java

@ -31,6 +31,7 @@ import com.fr.form.ui.Widget;
import com.fr.form.ui.WidgetInfoConfig;
import com.fr.general.Background;
import com.fr.log.FineLoggerFactory;
import com.fr.report.web.button.Email;
import com.fr.report.web.button.Export;
import com.fr.report.web.button.write.AppendColumnRow;
@ -224,7 +225,11 @@ public class EditToolBar extends BasicPane {
String iconname = ((Button) widget).getIconName();
if (StringUtils.isNotBlank(iconname)) {
Image iimage = WidgetInfoConfig.getInstance().getIconManager().getIconImage(iconname);
toolBarButton.setIcon(new ImageIcon(iimage));
if (iimage != null) {
toolBarButton.setIcon(new ImageIcon(iimage));
} else {
FineLoggerFactory.getLogger().warn(iconname + " can not find in finedb!");
}
}
}
}

Loading…
Cancel
Save