|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectteamdev.jxdesktop.Keyboard
Represents the system keyboard that allows listening to the system key events.
Field Summary | |
protected java.util.List |
listeners
|
Constructor Summary | |
protected |
Keyboard()
|
Method Summary | |
void |
addKeyListener(java.awt.event.KeyListener listener)
Adds the specified key listener to receive system key events. |
static Keyboard |
createKeyboard()
|
abstract void |
dispose()
Disposes of the system keyboard. |
java.awt.event.KeyListener[] |
getKeyListeners()
Returns an array of all the key listeners registered. |
void |
removeKeyListener(java.awt.event.KeyListener listener)
Removes the specified key listener so that it no longer receives system key events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List listeners
Constructor Detail |
protected Keyboard()
Method Detail |
public static Keyboard createKeyboard()
public void addKeyListener(java.awt.event.KeyListener listener)
listener
is null, no exception is thrown
and no action is performed.
listener
- the key listenerpublic void removeKeyListener(java.awt.event.KeyListener listener)
listener
- the key listenerpublic java.awt.event.KeyListener[] getKeyListeners()
KeyListener
s
or an empty array if no key
listeners are currently registeredpublic abstract void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |