Package edu.uiuc.ncsa.qdl.gui
Class QDLCharKeyAdapter
- java.lang.Object
-
- java.awt.event.KeyAdapter
-
- edu.uiuc.ncsa.qdl.gui.QDLCharKeyAdapter
-
- All Implemented Interfaces:
KeyListener
,EventListener
- Direct Known Subclasses:
QDLSASTerminal.QDLSASKeyCharAdapter
public class QDLCharKeyAdapter extends KeyAdapter
This will listen for key strokes that are remapped to special characters E.g. alt+e is ∈. This might be re-writable as a key binding but won't be able to use the mechanisms in other terminals, adding the maintenence issues. So it looks to be a lot of work. The main argument for doing this is speed -- at some point this is going to get slow if there is a lot of text to wade through since it has to do surgery on the entire text area. If that happens, a rewrite is in order.
-
-
Constructor Summary
Constructors Constructor Description QDLCharKeyAdapter(SwingTerminal swingTerminal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSend(String current)
void
keyTyped(KeyEvent e)
-
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased
-
-
-
-
Constructor Detail
-
QDLCharKeyAdapter
public QDLCharKeyAdapter(SwingTerminal swingTerminal)
-
-
Method Detail
-
doSend
protected void doSend(String current)
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
- Overrides:
keyTyped
in classKeyAdapter
-
-