public class PincodeTerminalTestDriver extends java.lang.Object implements PincodeTerminal
GREEN_LED, RED_LED
Constructor and Description |
---|
PincodeTerminalTestDriver(java.lang.String title,
int xPos,
int yPos)
Creates a graphically simulated pincode terminal.
|
Modifier and Type | Method and Description |
---|---|
void |
lightLED(int color,
int time)
Turns on LED for lightTime seconds.
|
void |
registerObserver(PincodeObserver pincodeHandler)
Registers a new observer to call when a user has pressed a key.
|
public PincodeTerminalTestDriver(java.lang.String title, int xPos, int yPos)
title
- The title of the window.xPos
- The horizontal location of the window on the screen.yPos
- The vertical location of the window on the screen.public void lightLED(int color, int time)
lightLED
in interface PincodeTerminal
color
- PinCodeTerminal.RED_LED or PinCodeTerminal.GREEN_LEDtime
- Turn on LED for time secondspublic void registerObserver(PincodeObserver pincodeHandler)
PincodeTerminal
registerObserver
in interface PincodeTerminal
pincodeHandler
- an observer to add