public final class KeyStrokesConstraintFactory extends java.lang.Object implements KeyStrokesConstraint
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_ALL
KeyStrokesConstraint ID.
|
static int |
TYPE_TEXT_EDITOR
KeyStrokesConstraint ID.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyStrokesConstraint |
getConstraint(int nType) |
boolean |
isAcceptableKey(KeyStrokes kss,
javax.swing.KeyStroke ksNew)
Implements KeyStrokesConstraint
|
public static final int TYPE_ALL
public static final int TYPE_TEXT_EDITOR
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