private class EventLogsManagerController.MainFrameKeyEventDispatcher
extends java.lang.Object
implements java.awt.KeyEventDispatcher
KeyEventDispatcher
to realise
a specific key event dispatcher to give to the KeyboardFocusManager
of the main JFrame
.
This dispatcher gets all the KEY_PRESSED
events and checks if they are
some specific shortcuts used to call the buttons of the
EventLogsManagerView
.
If they are, this class calls the correct function connected to those specific shortcuts.
KeyEventDispatcher
,
KeyboardFocusManager
,
JFrame
Modifier | Constructor and Description |
---|---|
private |
MainFrameKeyEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatchKeyEvent(java.awt.event.KeyEvent e)
This method is called by the current KeyboardFocusManager requesting
that this KeyEventDispatcher dispatch the specified event on its behalf.
|
public boolean dispatchKeyEvent(java.awt.event.KeyEvent e)
This methods gets all the KEY_PRESSED
events and checks if they are
some specific shortcuts used to call the buttons of the
EventLogsManagerView
.
If they are, this method calls the correct function connected to those specific shortcuts.
dispatchKeyEvent
in interface java.awt.KeyEventDispatcher
e
- the KeyEvent
to dispatchtrue
if the KeyboardFocusManager
should take no further action
with regard to the KeyEvent
; false otherwiseKeyboardFocusManager
,
KeyEvent