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.
47 lines
1.1 KiB
47 lines
1.1 KiB
package com.fr.design.present; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import com.fr.base.present.FormulaPresent; |
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
import com.fr.design.formula.TinyFormulaPane; |
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
|
public class FormulaPresentPane extends FurtherBasicBeanPane<FormulaPresent> { |
|
private TinyFormulaPane tinyFormulaPane; |
|
|
|
public FormulaPresentPane() { |
|
this.initComponents(); |
|
} |
|
|
|
protected void initComponents() { |
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
tinyFormulaPane = new TinyFormulaPane(); |
|
this.add(tinyFormulaPane, BorderLayout.CENTER); |
|
} |
|
|
|
@Override |
|
public String title4PopupWindow() { |
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Present_Formula_Present"); |
|
} |
|
|
|
@Override |
|
public boolean accept(Object ob) { |
|
return ob instanceof FormulaPresent; |
|
} |
|
|
|
public void reset() { |
|
this.tinyFormulaPane.populateBean(null); |
|
} |
|
|
|
@Override |
|
public void populateBean(FormulaPresent ob) { |
|
this.tinyFormulaPane.populateBean(ob.getFormulaContent()); |
|
} |
|
|
|
@Override |
|
public FormulaPresent updateBean() { |
|
return new FormulaPresent(this.tinyFormulaPane.updateBean()); |
|
} |
|
} |