org.hfbk.vis.visnode.VisKeyboard Class Reference

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

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

Collaboration graph
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>()


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!


Definition at line 44 of file

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

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

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

Definition at line 54 of file

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

Definition at line 60 of file

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

Definition at line 62 of file

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

constant marking line break in the keyboard

Definition at line 103 of file

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_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,
the keyboad layout

Definition at line 106 of file

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

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