站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

KeyEventBlocker (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.ext
Class KeyEventBlocker

java.lang.Object
  extended by org.netbeans.editor.ext.KeyEventBlocker
All Implemented Interfaces:
KeyListener, EventListener

public class KeyEventBlocker
extends Object
implements KeyListener


Constructor Summary
KeyEventBlocker(JTextComponent component, boolean discardFirstKeyTypedEvent)
           
 
Method Summary
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void stopBlocking()
           
 void stopBlocking(boolean dispatchBlockedEvents)
          Has to be called from AWT event thread to be properly synchronized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyEventBlocker

public KeyEventBlocker(JTextComponent component,
                       boolean discardFirstKeyTypedEvent)
Method Detail

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

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.