jscicalc.button.OffButton Class Reference

Button to switch calculator off. More...

Inheritance diagram for jscicalc.button.OffButton:

jscicalc.button.CalculatorButton
Collaboration diagram for jscicalc.button.OffButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OffButton (CalculatorApplet applet)
 Constructor.
void actionPerformed (java.awt.event.ActionEvent actionEvent)
 Ask CalculatorApplet to change state to off.

Static Private Attributes

static final long serialVersionUID = 1L


Detailed Description

Button to switch calculator off.

It doesn’t make the calculator disappear because we’re emulating a real calculator. Instead it makes the display disappear and prevents buttons other than OnButton from functioning.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.button.OffButton.OffButton ( CalculatorApplet  applet  ) 


Member Function Documentation

void jscicalc.button.OffButton.actionPerformed ( java.awt.event.ActionEvent  actionEvent  ) 

Ask CalculatorApplet to change state to off.

Parameters:
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.CalculatorApplet.clearHistory(), jscicalc.button.CalculatorButton.getApplet(), jscicalc.CalculatorApplet.setOn(), jscicalc.CalculatorApplet.setShift(), and jscicalc.CalculatorApplet.updateDisplay().


Member Data Documentation

final long jscicalc.button.OffButton.serialVersionUID = 1L [static, private]

Reimplemented from jscicalc.button.CalculatorButton.


The documentation for this class was generated from the following file:

Generated on Sun Jun 1 08:57:54 2008 for Java Scientific Calculator by  doxygen 1.5.5