org.hfbk.vis.visnode.VisKeyboard Class Reference

Inheritance diagram for org.hfbk.vis.visnode.VisKeyboard:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vis.visnode.VisKeyboard:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void register (Component c)

Public Attributes

boolean enabled = true

Package Attributes

Component focus
Robot keybot
boolean registered = false

Static Package Attributes

static final int NEXTROW = -1
static int[] keylayout
static HashMap< Integer, String > keytexts = new HashMap<Integer,String>()

Classes

class  VisKey

Detailed Description

an onscreen keyboard for touchscreen use. can be typed with the mouse too. takes some time, though.

it is somewhat simplified to its primary use of entering keywords.

an UI can call register(Component) on its top level container to recursively attach the keyboard to them. the keyboard will then automatically pop up on activation of these and hides after ENTER or ESC is pressed.

currently only registered components are able to receive keystrokes, as the focus is usually drawn away from them when typing to the OSK!

Author:
paul

Definition at line 44 of file VisKeyboard.java.


Member Function Documentation

void org.hfbk.vis.visnode.VisKeyboard.register ( Component  c  ) 

convenience function: register OSK to UI recursively

Definition at line 225 of file VisKeyboard.java.


Member Data Documentation

Component org.hfbk.vis.visnode.VisKeyboard.focus [package]

if a visual key is hit, the client panel gets the focus, so some other field lost it. we reenforce the focus on need to send keystrokes to the last activated field.

Definition at line 52 of file VisKeyboard.java.

Robot org.hfbk.vis.visnode.VisKeyboard.keybot [package]

Definition at line 54 of file VisKeyboard.java.

boolean org.hfbk.vis.visnode.VisKeyboard.enabled = true

Definition at line 60 of file VisKeyboard.java.

boolean org.hfbk.vis.visnode.VisKeyboard.registered = false [package]

Definition at line 62 of file VisKeyboard.java.

final int org.hfbk.vis.visnode.VisKeyboard.NEXTROW = -1 [static, package]

constant marking line break in the keyboard

Definition at line 103 of file VisKeyboard.java.

int [] org.hfbk.vis.visnode.VisKeyboard.keylayout [static, package]

Initial value:

new int[]{
                        KeyEvent.VK_ESCAPE,     KeyEvent.VK_1, KeyEvent.VK_2, KeyEvent.VK_3, KeyEvent.VK_4,KeyEvent.VK_5, 
                                KeyEvent.VK_6, KeyEvent.VK_7,   KeyEvent.VK_8, KeyEvent.VK_9,KeyEvent.VK_0,
                                KeyEvent.VK_BACK_SPACE, NEXTROW,
        
                        KeyEvent.VK_TAB, KeyEvent.VK_Q, KeyEvent.VK_W,  KeyEvent.VK_E,  KeyEvent.VK_R,  KeyEvent.VK_T,  KeyEvent.VK_Z,
                                KeyEvent.VK_U,  KeyEvent.VK_I,  KeyEvent.VK_O,  KeyEvent.VK_P,  KeyEvent.VK_PLUS, NEXTROW,
                        
                        KeyEvent.VK_CAPS_LOCK,KeyEvent.VK_A,KeyEvent.VK_S,KeyEvent.VK_D,KeyEvent.VK_F,KeyEvent.VK_G,KeyEvent.VK_H,
                                KeyEvent.VK_J,KeyEvent.VK_K,KeyEvent.VK_L,KeyEvent.VK_ENTER,NEXTROW,
                        
                        KeyEvent.VK_LESS,KeyEvent.VK_Y, KeyEvent.VK_X,  KeyEvent.VK_C,  KeyEvent.VK_V,  KeyEvent.VK_B, KeyEvent.VK_N,
                                KeyEvent.VK_M,  KeyEvent.VK_COMMA,      KeyEvent.VK_PERIOD,     KeyEvent.VK_MINUS, NEXTROW,
                        
                        KeyEvent.VK_SPACE
        }
the keyboad layout

Definition at line 106 of file VisKeyboard.java.

HashMap<Integer,String> org.hfbk.vis.visnode.VisKeyboard.keytexts = new HashMap<Integer,String>() [static, package]

map with caption of special keys. any key not in this map is captioned by the default decription which is their letter or a descriptive word

Definition at line 124 of file VisKeyboard.java.


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:59:22 2009 for visclient by  doxygen 1.5.1