|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.keyboard.KeyStrokesConstraintFactory
KeyStrokesConstraintFactory is a factory of KeyStrokeConstraint.
Since I only expect two KeyStrokeConstraint, this factory builds them.
The first factory, TYPE_ALL, accepts any key. The second, TYPE_TEXT_EDITOR,
Does not allow shortcuts that do not start with a modifier (Ctrl, Alt, ...)
or with the Shift modifier (in clear, it refuses "A", "Shift+A",... but
accepts "Ctrl+A", "Ctrl+A, A", "Ctrl+Shift+A", ...
This class implements KeyStrokesConstraint for internal reasons only.
Field Summary | |
static int |
TYPE_ALL
KeyStrokesConstraint ID. |
static int |
TYPE_TEXT_EDITOR
KeyStrokesConstraint ID. |
Method Summary | |
static KeyStrokesConstraint |
getConstraint(int nType)
|
boolean |
isAcceptableKey(KeyStrokes kss,
javax.swing.KeyStroke ksNew)
Implements KeyStrokesConstraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_ALL
public static final int TYPE_TEXT_EDITOR
Method Detail |
public boolean isAcceptableKey(KeyStrokes kss, javax.swing.KeyStroke ksNew)
isAcceptableKey
in interface KeyStrokesConstraint
public static KeyStrokesConstraint getConstraint(int nType)
nType
- Valid values are TYPE_ALL and TYPE_TEXT_EDITOR
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.