org.netbeans.modules.editor.lib/1 1.30.0 8

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.30.0 8

Built on December 3 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.