telosys.objects
Class Keyboard

java.lang.Object
  extended bytelosys.objects.Keyboard

public class Keyboard
extends java.lang.Object

Class for the keyboard instance.


Constructor Summary
Keyboard()
           
 
Method Summary
 string desc()
          Returns a description of the keyboard object
 number getNbKeyActions()
          Returns the number of key actions
 void keyDown(object oEvent)
          Executes when a key is down
 void keyPress(object oEvent)
          Executes when a key is pressed
 void processKeyCode(number iKeyCode, number iEvtType, object oEvent)
          Executes the action associated with the given key code if exists
 void setKeyAction(number iKey, object oFunction, number iEventType)
          Sets the key action
 void showKeyActions()
          Shows (alert) all key actions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Keyboard

public Keyboard()
Method Detail

desc

public string desc()
Returns a description of the keyboard object

Returns:
the description

setKeyAction

public void setKeyAction(number iKey,
                         object oFunction,
                         number iEventType)
Sets the key action

Parameters:
iKey - the number of the key action
oFunction - the function
iEventType - the event type number

getNbKeyActions

public number getNbKeyActions()
Returns the number of key actions

Returns:
the number of key actions

showKeyActions

public void showKeyActions()
Shows (alert) all key actions


keyPress

public void keyPress(object oEvent)
Executes when a key is pressed

Parameters:
oEvent - the event object

keyDown

public void keyDown(object oEvent)
Executes when a key is down

Parameters:
oEvent - the event object

processKeyCode

public void processKeyCode(number iKeyCode,
                           number iEvtType,
                           object oEvent)
Executes the action associated with the given key code if exists

Parameters:
iKeyCode - the key code
iEvtType - the number of event type
oEvent - the event object