|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.KeyAdapter
chooser.BindingAdaptor
public class BindingAdaptor
Adaptor that uses keyboard input to set the selected shortcut field of a BindingChooser. This can be added to focused components to provide editing functionality for this chooser. This prevents duplicate entries and varies how it captures input according to the type of key event its set to capture.
Method Summary | |
---|---|
int |
getDisablingKeyCode()
Provides the keycode that can be input to generated key adaptors to disable key bindings. |
int |
getInputEventType()
Provides the type of keystroke registered by input via generated key adaptors. |
boolean |
isBindingDisablingEnabled()
Provides if bindings are currently disableable via generated key adaptors or not. |
void |
keyPressed(KeyEvent event)
|
void |
keyReleased(KeyEvent event)
|
void |
keyTyped(KeyEvent event)
|
void |
setBindingsDisableable(boolean enable)
Sets if bindings can be disabled via generated key adaptors with the disabling key code. |
void |
setDisablingKeyCode(int keycode)
Sets the keycode used to disable individual key bindings (removing it from returned mappings) via generated key adaptors. |
void |
setInputEventType(int type)
Sets the type of keystroke registered by input via generated key adaptors (by default KeyEvent.KEY_PRESSED). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isBindingDisablingEnabled()
public void setBindingsDisableable(boolean enable)
enable
- if true then input can disable bindings, otherwise bindings may not be disabledpublic int getDisablingKeyCode()
public void setDisablingKeyCode(int keycode)
keycode
- keycode that sets selected entry to a disabled statepublic int getInputEventType()
public void setInputEventType(int type)
type
- type of keystroke registered by input
IllegalArgumentExeption
- if type doesn't match a valid key eventpublic void keyPressed(KeyEvent event)
keyPressed
in interface KeyListener
keyPressed
in class KeyAdapter
public void keyReleased(KeyEvent event)
keyReleased
in interface KeyListener
keyReleased
in class KeyAdapter
public void keyTyped(KeyEvent event)
keyTyped
in interface KeyListener
keyTyped
in class KeyAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |