- All Superinterfaces:
BasePaneListener<Window>
- All Known Implementing Classes:
WindowListenerAdapter
Extended
BasePaneListener
for Window
that exposes additional events that are specific to windows-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMoved
(Window window, TerminalPosition oldPosition, TerminalPosition newPosition) Called whenever the window's position has changed, no matter if it was done by the window manager or the uservoid
onResized
(Window window, TerminalSize oldSize, TerminalSize newSize) Called whenever the window's size has changed, no matter if it was done by the window manager or the userMethods inherited from interface com.googlecode.lanterna.gui2.BasePaneListener
onInput, onUnhandledInput
-
Method Details
-
onResized
Called whenever the window's size has changed, no matter if it was done by the window manager or the user- Parameters:
window
- Window that was resizedoldSize
- Previous size of the windownewSize
- New size of the window
-
onMoved
Called whenever the window's position has changed, no matter if it was done by the window manager or the user- Parameters:
window
- Window that was repositionedoldPosition
- Previous position of the windownewPosition
- New position of the window
-