Browse Source

REPORT-75998 补充注释,增加分页预览设置等事件名称展示

feature/x
Destiny.Lin 2 years ago
parent
commit
e39770af01
  1. 4
      designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchWebJSAction.java
  2. 4
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITTableEditorPane.java

4
designer-realize/src/main/java/com/fr/design/actions/replace/action/content/js/SearchWebJSAction.java

@ -15,6 +15,7 @@ import com.fr.js.JavaScriptImpl;
import com.fr.main.impl.WorkBook;
import com.fr.report.web.ToolBarManager;
import com.fr.report.web.WebContent;
import com.fr.report.web.util.ReportEngineEventMapping;
import com.fr.web.attr.ReportWebAttr;
import java.util.ArrayList;
@ -58,8 +59,6 @@ public class SearchWebJSAction implements SearchJS {
private void addJSInfos2ListFromWeb(JTemplate jTemplate, List<JSInfo> jsInfos) {
dealServerWebAttr(jTemplate, jsInfos);
dealTemplateWebAttr(jTemplate, jsInfos);
}
@ -115,6 +114,7 @@ public class SearchWebJSAction implements SearchJS {
Listener listener = webContent.getListener(i);
ITContent newContent = ITContent.copy(content);
newContent.setReplaceObject(listener);
newContent.addOtherPos(Toolkit.i18nText(ReportEngineEventMapping.getLocaleName(listener.getEventName())));
SearchJSUtils.searchJSFromListener(jsInfos, newContent);
}
}

4
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITTableEditorPane.java

@ -128,6 +128,10 @@ public class ITTableEditorPane<T> extends BasicPane {
});
}
/**
* 刷新表头
* @param table
*/
public void refreshHeader(JTable table) {
selectBox.setSelected(true);
int rowHeight = table.getRowHeight();

Loading…
Cancel
Save