-
- All Superinterfaces:
BasePaneListener<Window>
- All Known Implementing Classes:
WindowListenerAdapter
public interface WindowListener extends BasePaneListener<Window>
ExtendedBasePaneListener
forWindow
that exposes additional events that are specific to windows
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 user-
Methods inherited from interface com.googlecode.lanterna.gui2.BasePaneListener
onInput, onUnhandledInput
-
-
-
-
Method Detail
-
onResized
void 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 user- Parameters:
window
- Window that was resizedoldSize
- Previous size of the windownewSize
- New size of the window
-
onMoved
void 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 user- Parameters:
window
- Window that was repositionedoldPosition
- Previous position of the windownewPosition
- New position of the window
-
-