Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.keyboard
Class GrabbableFocusManager

java.lang.Object
  extended by oracle.ide.keyboard.GrabbableFocusManager
All Implemented Interfaces:
java.awt.KeyEventDispatcher

public final class GrabbableFocusManager
extends java.lang.Object
implements java.awt.KeyEventDispatcher

This FocusManager allows to 'steal' keys on demand. The primary usage is for the multi-keystroke shortcuts system which needs to steal keys when entering a valid multi-key sequence.


Method Summary
 boolean dispatchKeyEvent(java.awt.event.KeyEvent anEvent)
          1) handles the eatNextTypedReleased() functionality
 void eatNextTypedReleased()
          Eats the keyTyped and keyReleased corresponding to the last keyPressed.
static GrabbableFocusManager getGrabbableFocusManager()
           
static GrabbableFocusManager install()
          Installing the GrabbableFocusManager inserts a new FocusManager chained to the original one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

install

public static GrabbableFocusManager install()
Installing the GrabbableFocusManager inserts a new FocusManager chained to the original one.


getGrabbableFocusManager

public static GrabbableFocusManager getGrabbableFocusManager()
Returns:
the GrabbableFocusManager if it has already been installed.

eatNextTypedReleased

public void eatNextTypedReleased()
Eats the keyTyped and keyReleased corresponding to the last keyPressed.


dispatchKeyEvent

public boolean dispatchKeyEvent(java.awt.event.KeyEvent anEvent)
1) handles the eatNextTypedReleased() functionality

Specified by:
dispatchKeyEvent in interface java.awt.KeyEventDispatcher

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.