|
|
@ -384,7 +384,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
|
|
|
|
|
|
|
|
private void fireRichEditor() { |
|
|
|
private void fireRichEditor() { |
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
|
|
|
|
refreshTableFieldParams(richText.getParams()); |
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(richEditorPane); |
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(richEditorPane); |
|
|
|
|
|
|
|
|
|
|
@ -456,15 +456,19 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent |
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshTableFieldParams(params); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
richText.setParams(params); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void refreshTableFieldParams(Map<String, String> params) { |
|
|
|
List<String> tableFieldNames = VanChartRichEditorPane.getFieldNames(); |
|
|
|
List<String> tableFieldNames = VanChartRichEditorPane.getFieldNames(); |
|
|
|
|
|
|
|
|
|
|
|
if (tableFieldNames != null) { |
|
|
|
if (tableFieldNames != null && params != null) { |
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
|
params.put(fieldName, "${" + fieldName + "_" + fieldName.hashCode() + "}"); |
|
|
|
params.put(fieldName, "${" + fieldName + "_" + fieldName.hashCode() + "}"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
richText.setParams(params); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createHtmlPane() { |
|
|
|
private JPanel createHtmlPane() { |
|
|
|