Interface KeyboardInputHandler
- All Known Implementing Classes:
GuiComponent
,TextEditComponent
,WorldNavigationUserInputTracker
public interface KeyboardInputHandler
This is the process:
1. Component receives focus, perhaps because user clicked on it with the mouse. 2. Now component will receive user key press and release events from the keyboard. 3. Component loses focus. Perhaps user chose another component to interact with.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
focusReceived
(ViewPanel viewPanel) boolean
keyPressed
(KeyEvent event, ViewPanel viewPanel) boolean
keyReleased
(KeyEvent event, ViewPanel viewPanel)
-
Method Details
-
focusLost
- Returns:
true
if view needs to be re-rendered.
-
focusReceived
- Returns:
true
if view needs to be re-rendered.
-
keyPressed
- Returns:
true
if view needs to be re-rendered.
-
keyReleased
- Returns:
true
if view needs to be re-rendered.
-