|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.ui.swing.KeyHandler
public class KeyHandler
Console-keys class handler.
Provides command history handling via the up and down keys.
See MathLib/Source/UI/Swing/releasenotes.txt for more information.
| This class is not guaranteed to work on older releases than jdk1.4.0-b92. See GN0004 for more information. |
| Field Summary | |
|---|---|
static KeyHandler |
runningReference
|
| Constructor Summary | |
|---|---|
KeyHandler(Console _con)
Main constructor. |
|
| Method Summary | |
|---|---|
void |
displayText(java.lang.String text)
|
void |
keyPressed(java.awt.event.KeyEvent e)
Handles key-typing. |
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
Handles key-typing not handled by keyPressed. |
void |
setStatusText(java.lang.String status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static KeyHandler runningReference
| Constructor Detail |
|---|
public KeyHandler(Console _con)
con - Where the interpreter will place its output.| Method Detail |
|---|
public void displayText(java.lang.String text)
displayText in interface JMathLibOutputpublic void setStatusText(java.lang.String status)
setStatusText in interface JMathLibOutputpublic void keyTyped(java.awt.event.KeyEvent e)
This method only takes care of the backspace key
keyTyped in interface java.awt.event.KeyListenere - The eventpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - The eventpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||