| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.keyboard.KeyStrokesConstraintFactory
public final class 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 KeyStrokesConstraintpublic static KeyStrokesConstraint getConstraint(int nType)
nType - Valid values are TYPE_ALL and TYPE_TEXT_EDITOR
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||