X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWindow.java;h=bfb09017f75fd615aa4422e2c56c0411bb7ee997;hb=efb7af1f330223bfe9ac67112149d7a3f1b68421;hp=97c607e42f8e687537c82154489f77e0d440bb8f;hpb=8582f35a3ffb8212463076217eb89278f42331d4;p=fanfix.git diff --git a/src/jexer/TWindow.java b/src/jexer/TWindow.java index 97c607e..bfb0901 100644 --- a/src/jexer/TWindow.java +++ b/src/jexer/TWindow.java @@ -457,6 +457,22 @@ public class TWindow extends TWidget { // Default: do nothing } + /** + * Called by application.switchWindow() when this window gets the + * focus, and also by application.addWindow(). + */ + public void onFocus() { + // Default: do nothing + } + + /** + * Called by application.switchWindow() when another window gets the + * focus. + */ + public void onUnfocus() { + // Default: do nothing + } + /** * Called by TApplication.drawChildren() to render on screen. */