org.beanfabrics.swing
Interface KeyBindingProcessor
- All Known Implementing Classes:
- BnComboBox, BnComboBoxEditor, BnTextField, TextPMComboBox, TextPMTextField
public interface KeyBindingProcessor
The KeyBindingProcessor declares the method
JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean)
as "public" method. It is used by the
BnTableCellEditor.ButtonDecorator
to forward activation key events to
TableCellEditor
components.
Method Summary |
boolean |
processKeyBinding(javax.swing.KeyStroke ks,
java.awt.event.KeyEvent e,
int condition,
boolean pressed)
This is invoked as the result of a KeyEvent that was not
consumed by the FocusManager , KeyListeners , or
the component. |
processKeyBinding
boolean processKeyBinding(javax.swing.KeyStroke ks,
java.awt.event.KeyEvent e,
int condition,
boolean pressed)
- This is invoked as the result of a
KeyEvent
that was not
consumed by the FocusManager
, KeyListeners
, or
the component. It will first try WHEN_FOCUSED
bindings, then
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
bindings, and finally
WHEN_IN_FOCUSED_WINDOW
bindings.
- Parameters:
e
- the unconsumed KeyEvent
pressed
- true if the key is pressed
- Returns:
- true if there is a key binding for
e