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

Class polarDust.calculator.KeypadPanel02

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

public class KeypadPanel02
extends Panel
implements CalcConstants
KeypadPanel02 is a button container for a calculator with more operations.

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

Constructor Index

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

Method Index

 o action(Event, Object)
Responds to button clicks.
 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 KeypadPanel02
  public KeypadPanel02(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.
Parameters:
parentApplet - the applet which constains sound methods.
See Also:
CalculatorApplet
 o KeypadPanel02
  public KeypadPanel02(CalcCPU aCPU)
Constructs a new panel.
Parameters:
aCPU - the class wich do the processing
See Also:
CalcCPU

Methods

 o configure
  public void configure()
Prepares the layout of the panel
 o action
  public boolean action(Event evt,
                        Object arg)
Responds to button clicks.
Overrides:
action in class Component
See Also:
Event, Object
 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
See Also:
Graphics

All Packages  Class Hierarchy  This Package  Previous  Next  Index