Browse Source

REPORT-42240 【10.0.13】设计器里功能描述(表单、组件)优化

research/11.0
Henry.Wang 4 years ago
parent
commit
c8af274aff
  1. 42
      designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

42
designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

@ -98,23 +98,29 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
private PropertyItem selectedItem; // 当前被选中的属性配置项 private PropertyItem selectedItem; // 当前被选中的属性配置项
public enum PropertyMode { public enum PropertyMode {
REPORT("report"), // 报表 REPORT, // 报表
REPORT_PARA("reportPara"), // 报表参数面板 REPORT_PARA, // 报表参数面板
REPORT_FLOAT("reportFloat"), // 报表悬浮元素 REPORT_FLOAT, // 报表悬浮元素
FORM("form"), // 表单 FORM(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Component_Settings")), // 表单
FORM_REPORT("formReport"), // 表单报表块 FORM_REPORT, // 表单报表块
POLY("poly"), // 聚合报表 POLY, // 聚合报表
POLY_REPORT("polyReport"), // 聚合报表-报表块 POLY_REPORT, // 聚合报表-报表块
POLY_CHART("polyChart"), // 聚合报表-图表块 POLY_CHART, // 聚合报表-图表块
AUTHORITY_EDITION("authorityEdition"), // 权限编辑 AUTHORITY_EDITION, // 权限编辑
AUTHORITY_EDITION_DISABLED ("authorityEditionDisabled"); // 权限编辑 AUTHORITY_EDITION_DISABLED; // 权限编辑
private String value; private String title;
PropertyMode(String value) {
this.value = value; PropertyMode() {
this.title = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Widget_Settings");
} }
public String getValue() {
return this.value; PropertyMode(String title) {
this.title = title;
}
public String getTitle() {
return this.title;
} }
} }
@ -748,11 +754,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
public void updateTitle() { public void updateTitle() {
try { try {
if (StringUtils.equals(KEY_WIDGET_SETTINGS, name)) { if (StringUtils.equals(KEY_WIDGET_SETTINGS, name)) {
if (currentMode == PropertyMode.FORM) { title = currentMode.getTitle();
title = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Component_Settings");
} else {
title = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Widget_Settings");
}
button.setToolTipText(title); button.setToolTipText(title);
UILabel uiLabel = (UILabel) ((BorderLayout) popupToolPane.contentPane.getLayout()).getLayoutComponent(BorderLayout.WEST); UILabel uiLabel = (UILabel) ((BorderLayout) popupToolPane.contentPane.getLayout()).getLayoutComponent(BorderLayout.WEST);
uiLabel.setText(title); uiLabel.setText(title);

Loading…
Cancel
Save