public class AWTKeyAdapter extends AWTAdapter implements KeyListener
DEBUG_IMPLEMENTATION
Constructor and Description |
---|
AWTKeyAdapter(KeyListener newtListener) |
AWTKeyAdapter(KeyListener newtListener,
Window newtProxy) |
AWTKeyAdapter(Window downstream) |
Modifier and Type | Method and Description |
---|---|
AWTAdapter |
addTo(Component awtComponent)
Due to the fact that some NEWT
NEWTEventListener
are mapped to more than one EventListener ,
this method is for your convenience to use this Adapter as a listener for all types.E.g. |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
AWTAdapter |
removeFrom(Component awtComponent) |
getNewtEventListener, getNewtWindow
public AWTKeyAdapter(KeyListener newtListener)
public AWTKeyAdapter(KeyListener newtListener, Window newtProxy)
public AWTKeyAdapter(Window downstream)
public AWTAdapter addTo(Component awtComponent)
AWTAdapter
NEWTEventListener
are mapped to more than one EventListener
,
this method is for your convenience to use this Adapter as a listener for all types.MouseListener
is mapped to MouseListener
and MouseMotionListener
.addTo
in class AWTAdapter
public AWTAdapter removeFrom(Component awtComponent)
removeFrom
in class AWTAdapter
AWTAdapter.addTo(java.awt.Component)
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
Copyright 2010 JogAmp Community.