|
|
@ -13,6 +13,8 @@ import javax.swing.JScrollPane; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
|
|
// 标签提示中的富文本面板,包含字段设置和富文本编辑器
|
|
|
|
// 标签提示中的富文本面板,包含字段设置和富文本编辑器
|
|
|
|
public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> { |
|
|
|
public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> { |
|
|
|
|
|
|
|
|
|
|
@ -48,13 +50,13 @@ public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> { |
|
|
|
fieldListContent.add(fieldListPane, BorderLayout.NORTH); |
|
|
|
fieldListContent.add(fieldListPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
|
|
JScrollPane fieldListScrollPane = new JScrollPane(fieldListContent); |
|
|
|
JScrollPane fieldListScrollPane = new JScrollPane(fieldListContent); |
|
|
|
fieldListScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); |
|
|
|
fieldListScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); |
|
|
|
fieldListScrollPane.setHorizontalScrollBar(null); |
|
|
|
fieldListScrollPane.setHorizontalScrollBar(null); |
|
|
|
fieldListScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Add_Field"))); |
|
|
|
fieldListScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Add_Field"))); |
|
|
|
|
|
|
|
|
|
|
|
// 字段格式和汇总
|
|
|
|
// 字段格式和汇总
|
|
|
|
JScrollPane fieldAttrScrollPane = new JScrollPane(fieldAttrPane); |
|
|
|
JScrollPane fieldAttrScrollPane = new JScrollPane(fieldAttrPane); |
|
|
|
fieldAttrScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); |
|
|
|
fieldAttrScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); |
|
|
|
fieldAttrScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Field_Setting"))); |
|
|
|
fieldAttrScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Field_Setting"))); |
|
|
|
|
|
|
|
|
|
|
|
fieldPane.add(fieldListScrollPane); |
|
|
|
fieldPane.add(fieldListScrollPane); |
|
|
@ -71,7 +73,7 @@ public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> { |
|
|
|
JPanel richEditorPane = new JPanel(); |
|
|
|
JPanel richEditorPane = new JPanel(); |
|
|
|
|
|
|
|
|
|
|
|
richEditorPane.setLayout(new BorderLayout()); |
|
|
|
richEditorPane.setLayout(new BorderLayout()); |
|
|
|
richEditorPane.setPreferredSize(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H)); |
|
|
|
richEditorPane.setPreferredSize(scale(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H))); |
|
|
|
richEditorPane.add(richEditor, BorderLayout.CENTER); |
|
|
|
richEditorPane.add(richEditor, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
return richEditorPane; |
|
|
|
return richEditorPane; |
|
|
|