Extension SDK 10.1.2


oracle.ide.keyboard
Class KeyStrokeFilter

java.lang.Object
  extended byoracle.ide.keyboard.KeyStrokeFilter


public final class KeyStrokeFilter
extends java.lang.Object

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

KeyStrokeFilter

public KeyStrokeFilter()

Method Detail

clear

public void clear()
Call this when you loose the focus because I wont receive the keyup events

keyPressed

public boolean keyPressed(int nKeyCode,
                          int nKeyMod)
To be called in reply to an KeyListener.keyPressed
Returns:
true is a valid key has been pressed (not ctrl, ...)

keyReleased

public void keyReleased(int nKeyCode,
                        int nKeyMod)
To be called in reply to an KeyListener.keyReleased

keyPressed

public boolean keyPressed(java.awt.event.KeyEvent e)
To be called in reply to an KeyListener.keyPressed

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
To be called in reply to an KeyListener.keyReleased

keyStroke

public boolean keyStroke(javax.swing.KeyStroke ks)
called by InputMap.get() to know if KeyEvents could be accelerators

getKeyStroke

public javax.swing.KeyStroke getKeyStroke()
If keyPressed returns true, returns the last valid key pressed

toString

public java.lang.String toString(boolean bWithModifiers)
returns a string representation of the current state.
Parameters:
bWithModifiers - if true, this includes the state of the control keys

toString

public java.lang.String toString()

Extension SDK


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