

Public Member Functions | |
| CplxButton (CalculatorApplet applet) | |
| Cosntructor. | |
| void | actionPerformed (java.awt.event.ActionEvent actionEvent) |
| This is the default actionPerformed. | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
| jscicalc.button.CplxButton.CplxButton | ( | CalculatorApplet | applet | ) |
Cosntructor.
Sets PObject to Cplx.
| applet | The controller object behave |
References jscicalc.button.CalculatorButton.pobject, jscicalc.button.CalculatorButton.setText(), jscicalc.button.CalculatorButton.setTextSize(), jscicalc.button.CalculatorButton.setToolTipText(), jscicalc.pobject.PObject.shortcut(), jscicalc.button.CalculatorButton.shortcut(), jscicalc.pobject.PObject.tooltip(), and jscicalc.button.CalculatorButton.tooltip().
| void jscicalc.button.CplxButton.actionPerformed | ( | java.awt.event.ActionEvent | actionEvent | ) |
This is the default actionPerformed.
It checks that the calculator is switched on and then carries out the action associated with this button depending on the state of the CalculatorApplet object. Typically it just asks the CalculatorApplet object to add its PObject to the Parser object at the current insert position and then update the display.
| actionEvent | The event that generated this method call: usually a button press or called when CalculatorApplet responded to the key associated with this button |
Reimplemented from jscicalc.button.CalculatorButton.
References jscicalc.button.CalculatorButton.applet, jscicalc.button.CalculatorButton.getApplet(), jscicalc.CalculatorApplet.getMode(), jscicalc.CalculatorApplet.getNotation(), jscicalc.button.CalculatorButton.pobject, jscicalc.CalculatorApplet.setMode(), jscicalc.CalculatorApplet.setShift(), jscicalc.Notation.toggle(), and jscicalc.CalculatorApplet.updateDisplay().
final long jscicalc.button.CplxButton.serialVersionUID = 1L [static, private] |
Reimplemented from jscicalc.button.CalculatorButton.
1.5.5