| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for a terminal that accepts input from keyboard and mouse.
| Field Summary | |
| static int | KEY_ACTION | 
| static int | KEY_ALT | 
| static int | KEY_CONTROL | 
| static int | KEY_SHIFT | 
| Method Summary | |
|  void | keyPressed(int keyCode,
           char keyChar,
           int modifiers)main keytyping event handler... | 
|  void | keyTyped(int keyCode,
         char keyChar,
         int modifiers)Handle key Typed events for the terminal, this will get all normal key types, but no shift/alt/control/numlock. | 
|  void | mousePressed(int x,
             int y,
             int modifiers)Terminal is mouse-aware and requires (x,y) coordinates of on the terminal (character coordinates) and the button clicked. | 
|  void | mouseReleased(int x,
              int y,
              int modifiers)Terminal is mouse-aware and requires the coordinates and button of the release. | 
|  void | setKeyCodes(java.util.Properties codes)Override the standard key codes used by the terminal emulation. | 
|  void | write(byte[] b)Direct access to writing data ... | 
| Field Detail | 
public static final int KEY_CONTROL
public static final int KEY_SHIFT
public static final int KEY_ALT
public static final int KEY_ACTION
| Method Detail | 
public void write(byte[] b)
b - 
public void mousePressed(int x,
                         int y,
                         int modifiers)
x - y - modifiers - 
public void mouseReleased(int x,
                          int y,
                          int modifiers)
x - y - modifiers - public void setKeyCodes(java.util.Properties codes)
codes - a properties object containing key code definitions
public void keyPressed(int keyCode,
                       char keyChar,
                       int modifiers)
keyCode - the key codekeyChar - the character represented by the keymodifiers - shift/alt/control modifiers
public void keyTyped(int keyCode,
                     char keyChar,
                     int modifiers)
keyCode - the key codekeyChar - the character represented by the keymodifiers - shift/alt/control modifiers| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||