|
|
|
@ -36,7 +36,6 @@ import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithoutChe
|
|
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.ValueFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.format.VanChartFormatPaneWithoutCheckBox; |
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorModel; |
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichEditorPane; |
|
|
|
|
import com.fr.van.chart.designer.component.richText.VanChartRichTextDialog; |
|
|
|
@ -445,7 +444,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
|
|
|
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(getTableFieldNames(), richEditorPane); |
|
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(richEditorPane); |
|
|
|
|
|
|
|
|
|
BasicDialog richTextDialog = new VanChartRichTextDialog(DesignerContext.getDesignerFrame(), richTextPane); |
|
|
|
|
|
|
|
|
@ -483,19 +482,11 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private List<String> getTableFieldNames() { |
|
|
|
|
if (parent == null) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return parent.getDataModelColumnNames(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected VanChartRichTextPane createRichTextPane(List<String> tableFieldNames, ModernUIPane<VanChartRichEditorModel> richEditorPane) { |
|
|
|
|
return new VanChartRichTextPane(tableFieldNames, richEditorPane); |
|
|
|
|
protected VanChartRichTextPane createRichTextPane(ModernUIPane<VanChartRichEditorModel> richEditorPane) { |
|
|
|
|
return new VanChartRichTextPane(richEditorPane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void refreshRichTextFormat(AttrTooltipRichText richText) { |
|
|
|
|
protected void refreshRichTextParams(AttrTooltipRichText richText) { |
|
|
|
|
String[] fieldNames = new String[]{ |
|
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Category_Use_Name"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Series_Name"), |
|
|
|
@ -516,7 +507,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<String> tableFieldNames = this.getTableFieldNames(); |
|
|
|
|
List<String> tableFieldNames = VanChartRichEditorPane.getFieldNames(); |
|
|
|
|
|
|
|
|
|
if (tableFieldNames != null) { |
|
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
|
@ -757,30 +748,13 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void populateRichEditor(AttrTooltipContent attrTooltipContent) { |
|
|
|
|
VanChartFormatPaneWithoutCheckBox[] formatPaneGroup = new VanChartFormatPaneWithoutCheckBox[]{ |
|
|
|
|
richTextCategoryNameFormatPane, |
|
|
|
|
richTextSeriesNameFormatPane, |
|
|
|
|
richTextValueFormatPane, |
|
|
|
|
richTextPercentFormatPane, |
|
|
|
|
richTextChangedValueFormatPane, |
|
|
|
|
richTextChangedPercentFormatPane |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
AttrTooltipFormat[] formatGroup = new AttrTooltipFormat[]{ |
|
|
|
|
attrTooltipContent.getRichTextCategoryFormat(), |
|
|
|
|
attrTooltipContent.getRichTextSeriesFormat(), |
|
|
|
|
attrTooltipContent.getRichTextValueFormat(), |
|
|
|
|
attrTooltipContent.getRichTextPercentFormat(), |
|
|
|
|
attrTooltipContent.getRichTextChangedValueFormat(), |
|
|
|
|
attrTooltipContent.getRichTextChangedPercentFormat() |
|
|
|
|
}; |
|
|
|
|
if (parent != null) { |
|
|
|
|
parent.refreshTableFieldNames(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateTooltipFormat(richTextTooltipContent, attrTooltipContent); |
|
|
|
|
// populateRichTextFormat(richTextTooltipContent.getRichTextAttr());
|
|
|
|
|
refreshRichTextFormat(richTextTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
refreshRichTextParams(richTextTooltipContent.getRichTextAttr()); |
|
|
|
|
populateRichText(attrTooltipContent.getRichTextAttr()); |
|
|
|
|
|
|
|
|
|
checkRichEditorState(attrTooltipContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|