Public Member Functions | Static Private Attributes

jscicalc.button.OnButton Class Reference

Button with two functions. More...

Collaboration diagram for jscicalc.button.OnButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OnButton (CalculatorApplet applet)
 Constructor.
void actionPerformed (java.awt.event.ActionEvent actionEvent)
 Ask CalculatorApplet to set its state to on and clear the DisplayLabel.

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

Button with two functions.

One is to switch the calculator on, the other to clear the current expression (or the most recently evaluated since EqualsButton and its subclasses leave the expression visible). In fact both functions are always carried out because switching a calculator on when it is already on has no effect and when we sitch on we always want a clear display.

Author:
J. D. Lamb
Version:
Revision:
1.4

Constructor & Destructor Documentation

jscicalc.button.OnButton.OnButton ( CalculatorApplet  applet  ) 

Member Function Documentation

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

Member Data Documentation

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

Reimplemented from jscicalc.button.CalculatorButton.


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