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

Class polarDust.calculator.NumKeypadPanel

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

public class NumKeypadPanel
extends Panel
implements CalcConstants
NumKeypadPanel is a container for a NumKeypad component.

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

Constructor Index

 o NumKeypadPanel(CalcCPU)
Constructs a panel with the following buttons: 0, ..., 9, dot(.).
 o NumKeypadPanel(CalcCPU, CalculatorApplet)
Constructs a panel with the following buttons: 0, ..., 9, dot(.).

Method Index

 o action(Event, Object)
Responds to button actions.
 o configure()
Configures panel's layout.
 o dispatchKeyDown(Event, int)
Dispatch unintercepted key down events.
 o dispatchKeyUp(Event, int)
Dispatch unintercepted key down events.
 o keyDown(Event, int)
Responds to key actions.
 o keyUp(Event, int)
Responds to key actions.
 o paint(Graphics)
Paints the panel.

Constructors

 o NumKeypadPanel
  public NumKeypadPanel(CalcCPU aCPU,
                        CalculatorApplet parentApplet)
Constructs a panel with the following buttons: 0, ..., 9, dot(.).
Parameters:
aCPU - the processor where the messages are sent.
parentApplet - used for sound related messages.
See Also:
Processor01, CalculatorApplet
 o NumKeypadPanel
  public NumKeypadPanel(CalcCPU aCPU)
Constructs a panel with the following buttons: 0, ..., 9, dot(.).
Parameters:
aCPU - the processor where the messages are sent.
See Also:
Processor01

Methods

 o configure
  public void configure()
Configures panel's layout.
 o action
  public boolean action(Event evt,
                        Object arg)
Responds to button actions.
Overrides:
action in class Component
See Also:
Event, Object
 o dispatchKeyDown
  public boolean dispatchKeyDown(Event evt,
                                 int iKey)
Dispatch unintercepted key down events.
 o dispatchKeyUp
  public boolean dispatchKeyUp(Event evt,
                               int iKey)
Dispatch unintercepted key down events.
 o keyDown
  public boolean keyDown(Event evt,
                         int iKey)
Responds to key actions.
Overrides:
keyDown in class Component
See Also:
Event
 o keyUp
  public boolean keyUp(Event evt,
                       int iKey)
Responds to key actions.
Overrides:
keyUp in class Component
See Also:
Event
 o paint
  public void paint(Graphics aGraphics)
Paints the panel.
Overrides:
paint in class Component
See Also:
Graphics

All Packages  Class Hierarchy  This Package  Previous  Next  Index