| java.lang.Object java.awt.event.KeyAdapter ti.swing.console.ConsoleKeyListener
ConsoleKeyListener | public class ConsoleKeyListener extends KeyAdapter implements Serializable(Code) | | Handle keyboard input, and provide a reader interface.... this really
should be thought of as an inner-class of ConsoleTextArea, but was moved
here to preserve sane file sizes...
author: Rob Clark version: 0.1 |
ConsoleKeyListener | public ConsoleKeyListener(Console console)(Code) | | Class Constructor.
Parameters: console - the console we belong to |
dispose | public void dispose()(Code) | | This should called when getting rid of this text-area... this will
cause any blocking readers to return.
|
getReader | public Reader getReader()(Code) | | Get the Reader for the console. By using this reader, an application
can use this console for input.
a reader that can be used to read from the console |
insertChar | public void insertChar(char c)(Code) | | Append char to current active buffer.
|
keyPressed | public void keyPressed(KeyEvent evt)(Code) | | Keep track of modifiers.
|
keyReleased | public void keyReleased(KeyEvent evt)(Code) | | Certain keys don't generate keyTyped events, so we have to do this.
|
keyTyped | public synchronized void keyTyped(KeyEvent evt)(Code) | | Invoked when a key is typed.
|
paintCursor | public void paintCursor(Graphics g)(Code) | | Draw the cursor over the graphics.
|
|
|