equal
deleted
inserted
replaced
18 private JComponent component; |
18 private JComponent component; |
19 |
19 |
20 /*err*/public EditorPanel(Ast.Ast ast) { |
20 /*err*/public EditorPanel(Ast.Ast ast) { |
21 listeners = new ArrayList<EditorListener>(); |
21 listeners = new ArrayList<EditorListener>(); |
22 LayoutManager overlay = new OverlayLayout(this); |
22 LayoutManager overlay = new OverlayLayout(this); |
23 this.setBackground(Color.GREEN); |
23 this.setBackground(Color.WHITE); |
24 setLayout(overlay); |
24 setLayout(overlay); |
25 component = CalcUtil.assembleComponent(ast); |
25 component = CalcUtil.assembleComponent(ast); |
26 EditorListenerHandler.addListenerHandler((IEditor)this, (AstContainer)component); |
26 EditorListenerHandler.addListenerHandler((IEditor)this, (AstContainer)component); |
27 add(component); |
27 add(component); |
28 } |
28 } |
73 @Override |
73 @Override |
74 public String getMathText() { |
74 public String getMathText() { |
75 /*err*/System.out.println(isac.gui.mawen.syntax.Ast$.MODULE$.math_string_of(getFormula())); |
75 /*err*/System.out.println(isac.gui.mawen.syntax.Ast$.MODULE$.math_string_of(getFormula())); |
76 /*err*/return Ast.math_string_of(getFormula() ); |
76 /*err*/return Ast.math_string_of(getFormula() ); |
77 } |
77 } |
78 |
|
79 |
|
80 |
|
81 |
|
82 } |
78 } |