KeyListener
description
This part creates a frame with the given size. The GEOM gets parameters: x, y, h, w, and passes them to the frame. The frame gets the key entered. The KeyListenerPart? allows users to enter the key and handles the keytyped, keyPressed, keyReleased events from the text field. It returns (fires out) the values of: keychar, keycode, keyModifiersText, isactionkey, keylocation. The part fires CLOSED string to the CLOSED outpin when the user closes the frame. The characteristics of the abovementioned parameters are:
o keychar - returns event ID: keychar = e.getID(e.g. keychar==KeyEvent?.KEY_TYPED)
o keycode -returns the integer keyCode associated with the key in this event.
o keyModifiersText - returns a String describing the modifier key(s), such as "Shift". If there is no modifier, gives "no modifier"
o keytext -returns a String describing the keyCode, such as "HOME", "F1" or "A".
o isactionkey -returns whether the key in this event is an "action" key.
o keylocation – returns the location of the key as the left, right, numbed, etc.
Part Diagram from Graph Editor

inpins
- GEOM(int, int, int, int) - ID = 1 - Frame size and coordinates
- int - X Axis coordinate
- int - Y Axis coordinate
- int - Frame width
- int - Frame height
- show() - ID = 2 - Shows the frame
- hide() - ID = 3 - Hides the frame
outpins
- EVENT - ID = 51 - Event Object
- Key event
- CLOSED - ID = 52 - Closed String
- String - "Closed"
links to cvs
source - revision 1.2 org.vcb.parts.ui.FontChooser.java at sourceforge.net
configuration file revision 1.3 fontChooser.xml at sourceforge.net
status
alpha release