当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
KeyEventBlocker (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class KeyEventBlocker
java.lang.Object
org.netbeans.editor.ext.KeyEventBlocker
- All Implemented Interfaces:
- KeyListener, EventListener
public class KeyEventBlocker
- extends Object
- implements KeyListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyEventBlocker
public KeyEventBlocker(JTextComponent component,
boolean discardFirstKeyTypedEvent)
stopBlocking
public void stopBlocking(boolean dispatchBlockedEvents)
- Has to be called from AWT event thread to be properly synchronized
stopBlocking
public void stopBlocking()
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interface KeyListener
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interface KeyListener
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interface KeyListener