Interface TextGUI.Listener
- Enclosing interface:
TextGUI
public static interface TextGUI.Listener
Listener interface for TextGUI, firing on events related to the overall GUI
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonUnhandledKeyStroke(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 returntrueif 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
truehere, otherwisefalse
-