@ -1,6 +1,7 @@
package com.fr.van.chart.designer.component.richText ;
package com.fr.van.chart.designer.component.richText ;
import com.fr.design.beans.BasicBeanPane ;
import com.fr.design.beans.BasicBeanPane ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.ui.ModernUIPane ;
import com.fr.design.ui.ModernUIPane ;
import com.fr.plugin.chart.base.AttrTooltipContent ;
import com.fr.plugin.chart.base.AttrTooltipContent ;
@ -38,7 +39,8 @@ public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> {
}
}
private JPanel createFieldContentPane ( ) {
private JPanel createFieldContentPane ( ) {
JPanel fieldPane = FRGUIPaneFactory . createNormalFlowInnerContainer_S_Pane ( ) ;
JPanel fieldPane = new JPanel ( ) ;
fieldPane . setLayout ( FRGUIPaneFactory . create2ColumnGridLayout ( ) ) ;
// 新增字段目录
// 新增字段目录
JPanel fieldListContent = new JPanel ( ) ;
JPanel fieldListContent = new JPanel ( ) ;
@ -48,12 +50,12 @@ public class VanChartRichTextPane extends BasicBeanPane<AttrTooltipContent> {
JScrollPane fieldListScrollPane = new JScrollPane ( fieldListContent ) ;
JScrollPane fieldListScrollPane = new JScrollPane ( fieldListContent ) ;
fieldListScrollPane . setPreferredSize ( new Dimension ( FIELD_PANE_W , FIELD_PANE_H ) ) ;
fieldListScrollPane . setPreferredSize ( new Dimension ( FIELD_PANE_W , FIELD_PANE_H ) ) ;
fieldListScrollPane . setHorizontalScrollBar ( null ) ;
fieldListScrollPane . setHorizontalScrollBar ( null ) ;
fieldListScrollPane . setBorder ( BorderFactory . createTitledBorder ( "添加字段" ) ) ;
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 ( new Dimension ( FIELD_PANE_W , FIELD_PANE_H ) ) ;
fieldAttrScrollPane . setBorder ( BorderFactory . createTitledBorder ( "字段设置" ) ) ;
fieldAttrScrollPane . setBorder ( BorderFactory . createTitledBorder ( Toolkit . i18nText ( "Fine-Design_Report_Field_Setting" ) ) ) ;
fieldPane . add ( fieldListScrollPane ) ;
fieldPane . add ( fieldListScrollPane ) ;
fieldPane . add ( fieldAttrScrollPane ) ;
fieldPane . add ( fieldAttrScrollPane ) ;