You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
941 B
38 lines
941 B
7 years ago
|
package com.fr.plugin.demo.ui;
|
||
7 years ago
|
|
||
|
import com.fr.design.formula.TinyFormulaPane;
|
||
|
import com.fr.extended.chart.ExtendedScrollPane;
|
||
7 years ago
|
import com.fr.plugin.demo.fun.DemoChart;
|
||
7 years ago
|
|
||
|
import javax.swing.JPanel;
|
||
|
import java.awt.BorderLayout;
|
||
|
|
||
|
/**
|
||
|
* Created by shine on 2018/3/25.
|
||
|
*/
|
||
|
public class DemoTitlePane extends ExtendedScrollPane<DemoChart>{
|
||
|
private TinyFormulaPane title;
|
||
|
@Override
|
||
|
public void populateBean(DemoChart ob) {
|
||
7 years ago
|
title.populateBean(ob.getTitleFormula().getContent());
|
||
7 years ago
|
}
|
||
|
|
||
|
@Override
|
||
|
public void updateBean(DemoChart ob) {
|
||
7 years ago
|
ob.getTitleFormula().setContent(title.updateBean());
|
||
7 years ago
|
}
|
||
|
|
||
|
@Override
|
||
|
protected JPanel createContentPane() {
|
||
|
JPanel panel = new JPanel(new BorderLayout());
|
||
|
title = new TinyFormulaPane();
|
||
|
panel.add(title, BorderLayout.CENTER);
|
||
|
return panel;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected String title4PopupWindow() {
|
||
|
return "标题";
|
||
|
}
|
||
|
}
|