|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.KeyAdapter
ti.swing.console.ConsoleKeyListener
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...
Constructor Summary | |
ConsoleKeyListener(Console console)
Class Constructor. |
Method Summary | |
void |
dispose()
This should called when getting rid of this text-area... |
java.lang.Object |
getHistory()
Get the history. |
java.io.Reader |
getReader()
Get the Reader for the console. |
void |
insertChar(char c)
Append char to current active buffer. |
void |
keyPressed(java.awt.event.KeyEvent evt)
Keep track of modifiers. |
void |
keyReleased(java.awt.event.KeyEvent evt)
Certain keys don't generate keyTyped events, so we have to do this. |
void |
keyTyped(java.awt.event.KeyEvent evt)
Invoked when a key is typed. |
void |
paintCursor(java.awt.Graphics g)
Draw the cursor over the graphics. |
void |
setHistory(java.lang.Object history)
Set the history. |
void |
setTabCompleter(ConsoleTabCompleter tabCompleter)
Set the ConsoleTabCompleter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConsoleKeyListener(Console console)
console
- the console we belong toMethod Detail |
public void setHistory(java.lang.Object history)
getHistory()
, but may be serialized/deserialized.
history
- a history object, as returned by getHistory()
getHistory()
public java.lang.Object getHistory()
Console
to make history
persistant. The history object is Serializable
setHistory(java.lang.Object)
public void setTabCompleter(ConsoleTabCompleter tabCompleter)
ConsoleTabCompleter
public java.io.Reader getReader()
public void dispose()
public void insertChar(char c)
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public void paintCursor(java.awt.Graphics g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |