Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperKeyboard
Source: src/com/multiversesocial/hyperview/HyperKeyboard.java
Extends: Component
Implements: Runnable, HyperConstants, GetStringConstants, KeyboardConstants, ThreadReport
public class HyperKeyboard extends Component implements Runnable, HyperConstants, GetStringConstants, KeyboardConstants, ThreadReport
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
int cnum | No comment in source; assigned in HyperKeyboard(). | ||
HyperView curView | No comment in source; assigned in HyperKeyboard(), setView(), destroy(); used in run(), anyKey(). | ||
int errorCount | No comment in source; assigned in HyperKeyboard(). | ||
int flags | No comment in source; assigned in HyperKeyboard(). | ||
volatile Gadget focus | No comment in source; assigned in HyperKeyboard(), destroy(); used in run(). | ||
volatile int intBufferIndex | No comment in source; assigned in HyperKeyboard(), run(); used in flush(), anyKey(). | ||
int iteration | No comment in source; assigned in HyperKeyboard(), run(), getRunInfo(); used in start(). | ||
Thread keyboardTask | No comment in source; assigned in start(), stop(), destroy(); used in run(). | ||
HyperKeyEvent[] keyMsg | No comment in source; assigned in HyperKeyboard(). | ||
int kz | No comment in source; assigned in HyperKeyboard(). | ||
long lastRun | If Report Bit set | ||
volatile int mainBufferIndex | No comment in source; assigned in HyperKeyboard(), run(), flush(); used in anyKey(). | ||
long now | Time of the last HyperView() run of this Thread | ||
RunInfo runInfo | No comment in source; assigned in HyperKeyboard(); used in start(), stop(), run(), getRunInfo(), anyKey(). | ||
long runLag | No comment in source; assigned in HyperKeyboard(), getRunInfo(). | ||
long startTime | No comment in source; assigned in HyperKeyboard(), getRunInfo(). | ||
String tmpString | No comment in source; assigned in HyperKeyboard(). | ||
int tz | = 0 | No comment in source; assigned in HyperKeyboard(). | |
int waitTime | No comment in source; assigned in HyperKeyboard(), getRunInfo(). | ||
int x | No comment in source; assigned in HyperKeyboard(). | ||
int y | No comment in source; assigned in HyperKeyboard(). |
| Signature | Description | Source |
|---|---|---|
HyperKeyboard(HyperView tcurView) | 14 statement(s); calls super(); creates RunInfo, HyperKeyEvent. |
| Signature | Description | Source |
|---|---|---|
public void anyKey() | 6 statement(s); calls curView.statusText(), wait(); creates Object. | |
public synchronized void destroy() | 5 statement(s); calls notifyAll(). | |
public void flush() | Sets mainBufferIndex = intBufferIndex. | |
public RunInfo getRunInfo() | 7 statement(s). | |
static boolean isNumeric(int keyCode) | Returns (keyCode > 47 && keyCode < 58) ? true : false. | |
static boolean isPrintable(int keyCode) | 1 statement(s). | |
public void run() | 4 statement(s); calls Thread.currentThread(), focus.inKey(), curView.inKey(), notifyAll(), wait() …. | |
public void setView(HyperView tView) | 1 statement(s); calls notifyAll(). | |
public synchronized void start() | 6 statement(s); calls tTask.interrupt(), keyboardTask.setName(), keyboardTask.start(); creates Thread. | |
public synchronized void stop() | 4 statement(s); calls tTask.interrupt(). |
instantiation — HyperView.java, line 1218
1218 keyboard = new HyperKeyboard(this);
static call — HyperEditBuffer.java, line 212
212 if(HyperKeyboard.isPrintable(keyCode))
213 {
declaration — AWTEventManager.java, line 82
82 HyperKeyboard keyboard = tView.keyboard;
Delivers keyboard input to a ported applet: the keyboard thread calls inKey() on the focused gadget, then curView.inKey() for keys left in the buffer (lines 105–123). See the Applet Migration Guide.