public class ComponentKeyAdapter extends Object implements GriffonPivotAdapter, ComponentKeyListener
ComponentKeyListener.Adapter
Constructor and Description |
---|
ComponentKeyAdapter() |
Modifier and Type | Method and Description |
---|---|
CallableWithArgs<Boolean> |
getKeyPressed() |
CallableWithArgs<Boolean> |
getKeyReleased() |
CallableWithArgs<Boolean> |
getKeyTyped() |
boolean |
keyPressed(Component arg0,
int arg1,
Keyboard.KeyLocation arg2) |
boolean |
keyReleased(Component arg0,
int arg1,
Keyboard.KeyLocation arg2) |
boolean |
keyTyped(Component arg0,
char arg1) |
void |
setKeyPressed(CallableWithArgs<Boolean> keyPressed) |
void |
setKeyReleased(CallableWithArgs<Boolean> keyReleased) |
void |
setKeyTyped(CallableWithArgs<Boolean> keyTyped) |
public CallableWithArgs<Boolean> getKeyTyped()
public CallableWithArgs<Boolean> getKeyPressed()
public CallableWithArgs<Boolean> getKeyReleased()
public void setKeyTyped(CallableWithArgs<Boolean> keyTyped)
public void setKeyPressed(CallableWithArgs<Boolean> keyPressed)
public void setKeyReleased(CallableWithArgs<Boolean> keyReleased)
public boolean keyTyped(Component arg0, char arg1)
keyTyped
in interface ComponentKeyListener
public boolean keyPressed(Component arg0, int arg1, Keyboard.KeyLocation arg2)
keyPressed
in interface ComponentKeyListener
public boolean keyReleased(Component arg0, int arg1, Keyboard.KeyLocation arg2)
keyReleased
in interface ComponentKeyListener