|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.keyboard.KeyStrokeFilter
This class controls the keyup/keydown events to determine what can be used as an accelerator.
Constructor Summary | |
KeyStrokeFilter()
|
Method Summary | |
void |
clear()
Call this when you loose the focus because I wont receive the keyup events |
javax.swing.KeyStroke |
getKeyStroke()
If keyPressed returns true, returns the last valid key pressed |
boolean |
keyPressed(int nKeyCode,
int nKeyMod)
To be called in reply to an KeyListener.keyPressed |
boolean |
keyPressed(java.awt.event.KeyEvent e)
To be called in reply to an KeyListener.keyPressed |
void |
keyReleased(int nKeyCode,
int nKeyMod)
To be called in reply to an KeyListener.keyReleased |
void |
keyReleased(java.awt.event.KeyEvent e)
To be called in reply to an KeyListener.keyReleased |
boolean |
keyStroke(javax.swing.KeyStroke ks)
called by InputMap.get() to know if KeyEvents could be accelerators |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean bWithModifiers)
returns a string representation of the current state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyStrokeFilter()
Method Detail |
public void clear()
public boolean keyPressed(int nKeyCode, int nKeyMod)
public void keyReleased(int nKeyCode, int nKeyMod)
public boolean keyPressed(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public boolean keyStroke(javax.swing.KeyStroke ks)
public javax.swing.KeyStroke getKeyStroke()
public java.lang.String toString(boolean bWithModifiers)
bWithModifiers
- if true, this includes the state of the control keyspublic java.lang.String toString()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.