Browse Source

无jira任务 代码质量注释

release/11.0
vito 1 year ago
parent
commit
833dc98a7f
  1. 2
      designer-base/src/main/java/com/fr/design/jxbrowser/MimeType.java
  2. 2
      designer-base/src/main/java/com/fr/design/jxbrowser/NxInterceptRequestCallback.java
  3. 6
      designer-base/src/main/java/com/fr/design/login/DesignerLoginBridge.java
  4. 12
      designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichEditorPane.java

2
designer-base/src/main/java/com/fr/design/jxbrowser/MimeType.java

@ -74,7 +74,7 @@ public enum MimeType {
this.mimeType = mimeType;
}
public String parseMimeType() {
public String getMimeType() {
return mimeType;
}

2
designer-base/src/main/java/com/fr/design/jxbrowser/NxInterceptRequestCallback.java

@ -113,7 +113,7 @@ public class NxInterceptRequestCallback implements InterceptUrlRequestCallback {
}
private boolean isHtml(String mimeType) {
return MimeType.HTML.parseMimeType().equals(mimeType);
return MimeType.HTML.getMimeType().equals(mimeType);
}
private Optional<UrlRequestJob> generateBasicUrlRequestJob(Params params, String mimeType, byte[] bytes) {

6
designer-base/src/main/java/com/fr/design/login/DesignerLoginBridge.java

@ -55,6 +55,12 @@ public class DesignerLoginBridge {
private final Map<String, String> params;
/**
* 获取 js-java bridge
*
* @param window 全局环境
* @return bridge
*/
public static DesignerLoginBridge getBridge(JsObject window, Map<String, String> params) {
return new DesignerLoginBridge(window, params);
}

12
designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichEditorPane.java

@ -121,11 +121,23 @@ public class VanChartRichEditorPane {
fieldNames.addAll(Arrays.asList(columnNames));
}
/**
* 创建富文本编辑器
*
* @param richEditor 属性
* @return 富文本编辑器
*/
public static JxUIPane<VanChartRichEditorModel> createRichEditorPane(AttrTooltipRichText richEditor) {
VanChartRichEditorModel model = getRichEditorModel(richEditor);
return createRichEditorPane(model);
}
/**
* 创建富文本编辑器
*
* @param model 模型
* @return 富文本编辑器
*/
public static JxUIPane<VanChartRichEditorModel> createRichEditorPane(VanChartRichEditorModel model) {
if (richEditorPane == null) {
richEditorPane = initPane(model);

Loading…
Cancel
Save