- Enclosing interface:
TextGUI
public static interface TextGUI.Listener
Listener interface for TextGUI, firing on events related to the overall GUI
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onUnhandledKeyStroke
(TextGUI textGUI, KeyStroke keyStroke) Fired either when no component was in focus during a keystroke or if the focused component and all its parent containers chose not to handle the event.
-
Method Details
-
onUnhandledKeyStroke
Fired either when no component was in focus during a keystroke or if the focused component and all its parent containers chose not to handle the event. This event listener should also returntrue
if the event was processed in any way that requires the TextGUI to update itself, otherwisefalse
.- Parameters:
textGUI
- TextGUI that had the eventkeyStroke
- Keystroke that was unhandled- Returns:
- If the outcome of this KeyStroke processed by the implementer requires the TextGUI to re-draw, return
true
here, otherwisefalse
-