WindowListener
WindowListenerAdapter
public interface BasePaneListener<T extends BasePane>
BasePane
(and Window
, which
extends BasePane
) so that you can be notified by a callback when certain events happen. Assume it is the GUI
thread that will call these methods. You typically use this through WindowListener
and calling
Window.addWindowListener(WindowListener)
Modifier and Type | Method | Description |
---|---|---|
void |
onInput(T basePane,
KeyStroke keyStroke,
AtomicBoolean deliverEvent) |
Called when a user input is about to be delivered to the focused
Interactable inside the
BasePane , but before it is actually delivered. |
void |
onUnhandledInput(T basePane,
KeyStroke keyStroke,
AtomicBoolean hasBeenHandled) |
Called when a user entered some input which wasn't handled by the focused component.
|
void onInput(T basePane, KeyStroke keyStroke, AtomicBoolean deliverEvent)
Interactable
inside the
BasePane
, but before it is actually delivered. You can catch it and prevent it from being passed into
the component by using the deliverEvent
parameter and setting it to false
.basePane
- Base pane that got the input eventkeyStroke
- The actual input eventdeliverEvent
- Set to true
automatically, if you change it to false
it will prevent the GUI
from passing the input event on to the focused Interactable
void onUnhandledInput(T basePane, KeyStroke keyStroke, AtomicBoolean hasBeenHandled)
Copyright © 2020. All rights reserved.