Class polarDust.calculator.KeypadPanel01
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class polarDust.calculator.KeypadPanel01

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----polarDust.calculator.KeypadPanel01

public class KeypadPanel01
extends Panel
implements CalcConstants
KeypadPanel01 is a button container for a simple calculator.

The source code.
Version:
0.9, 1996.06.04
Author:
Sorin Lazareanu

Constructor Index

 o KeypadPanel01(CalcCPU)
Constructs a new panel.
 o KeypadPanel01(CalcCPU, CalculatorApplet)
Constructs a new panel.

Method Index

 o action(Event, Object)
Responds to button click events.
 o configure()
Prepares the layout of the panel
 o dispatchKeyDown(Event, int)
Dispatches unintercepted key down events to the components.
 o dispatchKeyUp(Event, int)
Dispatches unintercepted key up events to the components.
 o keyDown(Event, int)
Responds to key down events.
 o paint(Graphics)
Paints on a Graphics object.

Constructors

 o KeypadPanel01
  public KeypadPanel01(CalcCPU aCPU,
                       CalculatorApplet parentApplet)
Constructs a new panel. The original call is from an CalculatorApplet. This information is used to send back sound related messages.
See Also:
CalculatorApplet
 o KeypadPanel01
  public KeypadPanel01(CalcCPU aCPU)
Constructs a new panel.

Methods

 o configure
  public void configure()
Prepares the layout of the panel
 o action
  public boolean action(Event evt,
                        Object arg)
Responds to button click events.
Overrides:
action in class Component
 o dispatchKeyDown
  public boolean dispatchKeyDown(Event evt,
                                 int iKey)
Dispatches unintercepted key down events to the components.
 o dispatchKeyUp
  public boolean dispatchKeyUp(Event evt,
                               int iKey)
Dispatches unintercepted key up events to the components.
 o keyDown
  public boolean keyDown(Event evt,
                         int iKey)
Responds to key down events.
Overrides:
keyDown in class Component
 o paint
  public void paint(Graphics aGraphics)
Paints on a Graphics object.
Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index