oracle.ide.keyboard
Interface KeyStrokesConstraint
- All Known Implementing Classes:
- KeyStrokePanel, KeyStrokesConstraintFactory
- public interface KeyStrokesConstraint
Defines what key can be used as a shortcut. Each KeyStrokeContext
exposes this information which is use in the KeyStrokePanel to limit the user
in the choice of the shortcuts.
Since I only expect two kinds of constraints, you should use the
KeyStrokesConstraints (a kind of factory) to get one of the two standard
constrains.
Method Summary |
boolean |
isAcceptableKey(KeyStrokes kss,
javax.swing.KeyStroke ksNew)
Returns true if the KeyStroke can be added to the KeyStrokes. |
isAcceptableKey
public boolean isAcceptableKey(KeyStrokes kss,
javax.swing.KeyStroke ksNew)
- Returns true if the KeyStroke can be added to the KeyStrokes.