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
-
NumKeypadPanel(CalcCPU)
- Constructs a panel with the following buttons: 0, ..., 9, dot(.).
-
NumKeypadPanel(CalcCPU, CalculatorApplet)
- Constructs a panel with the following buttons: 0, ..., 9, dot(.).
-
action(Event, Object)
- Responds to button actions.
-
configure()
- Configures panel's layout.
-
dispatchKeyDown(Event, int)
- Dispatch unintercepted key down events.
-
dispatchKeyUp(Event, int)
- Dispatch unintercepted key down events.
-
keyDown(Event, int)
- Responds to key actions.
-
keyUp(Event, int)
- Responds to key actions.
-
paint(Graphics)
- Paints the panel.
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
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
configure
public void configure()
- Configures panel's layout.
action
public boolean action(Event evt,
Object arg)
- Responds to button actions.
- Overrides:
- action in class Component
- See Also:
- Event, Object
dispatchKeyDown
public boolean dispatchKeyDown(Event evt,
int iKey)
- Dispatch unintercepted key down events.
dispatchKeyUp
public boolean dispatchKeyUp(Event evt,
int iKey)
- Dispatch unintercepted key down events.
keyDown
public boolean keyDown(Event evt,
int iKey)
- Responds to key actions.
- Overrides:
- keyDown in class Component
- See Also:
- Event
keyUp
public boolean keyUp(Event evt,
int iKey)
- Responds to key actions.
- Overrides:
- keyUp in class Component
- See Also:
- Event
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