All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calculator.ButtonHandler

java.lang.Object
   |
   +----calculator.ButtonHandler

public class ButtonHandler
extends Object
implements Animate
This class provides the smarts for a basic four-function calculator. It repeatedly calls its Calculator(GUI)'s getButton() to consume the buttonIDs that the Calculator object produces.

Copyright (c) 1999 Massachusetts Institute of Technology

See Also:
Calculator, IntBuffer

Variable Index

 o brains
 o gui
 o spirit

Constructor Index

 o ButtonHandler()
Build a ButtonHandler object from a Calculator gui passed in as an argument.

Method Index

 o act()
Provides the interactive control loop of this animate object.

Variables

 o gui
 protected Calculator gui
 o brains
 protected CalculatorState brains
 o spirit
 protected AnimatorThread spirit

Constructors

 o ButtonHandler
 protected ButtonHandler()
Build a ButtonHandler object from a Calculator gui passed in as an argument.

Methods

 o act
 public void act()
Provides the interactive control loop of this animate object.

See Also:
Animate

All Packages  Class Hierarchy  This Package  Previous  Next  Index