

Public Member Functions | |
| MminusButton (CalculatorApplet applet) | |
| Constructor. | |
| void | actionPerformed (java.awt.event.ActionEvent actionEvent) |
| Evaluates the current expression and subtracts the value from memory. | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
This class could probably be better derived from EqualsButton.
| jscicalc.button.MminusButton.MminusButton | ( | CalculatorApplet | applet | ) |
Constructor.
Sets PObject to Mminus.
| applet | The controller object. |
References jscicalc.button.CalculatorButton.setText(), jscicalc.button.CalculatorButton.setTextSize(), jscicalc.button.CalculatorButton.setToolTipText(), jscicalc.button.CalculatorButton.shortcut(), and jscicalc.button.CalculatorButton.tooltip().
| void jscicalc.button.MminusButton.actionPerformed | ( | java.awt.event.ActionEvent | actionEvent | ) |
Evaluates the current expression and subtracts the value from memory.
| 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.Parser.evaluate(), jscicalc.button.CalculatorButton.getApplet(), jscicalc.Parser.getLast(), jscicalc.CalculatorApplet.getMemory(), jscicalc.CalculatorApplet.getMode(), jscicalc.CalculatorApplet.getParser(), jscicalc.CalculatorApplet.getValue(), jscicalc.CalculatorApplet.insert(), jscicalc.CalculatorApplet.newExpression(), jscicalc.button.CalculatorButton.pobject, jscicalc.CalculatorApplet.pushHistory(), jscicalc.CalculatorApplet.setMemory(), jscicalc.CalculatorApplet.setMode(), jscicalc.CalculatorApplet.setShift(), jscicalc.CalculatorApplet.setValue(), jscicalc.pobject.Ans.setValue(), jscicalc.OObject.subtract(), and jscicalc.CalculatorApplet.updateDisplay().
final long jscicalc.button.MminusButton.serialVersionUID = 1L [static, private] |
Reimplemented from jscicalc.button.CalculatorButton.
1.5.5