Extension SDK 10.1.2

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.
 

Method Detail

isAcceptableKey

public boolean isAcceptableKey(KeyStrokes kss,
                               javax.swing.KeyStroke ksNew)
Returns true if the KeyStroke can be added to the KeyStrokes.


Extension SDK

 

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