X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWindow.java;h=c7b59c82ab5d9d19a90f843668c6695c03c122b5;hb=3649b9210ea425f398ba8c24f9509669cf72aa96;hp=e047bc80204324f4298e475c9677c5de3c2ea6f7;hpb=0d47c5460c8e9d1198928308767a63ad35f46eb8;p=nikiroo-utils.git diff --git a/src/jexer/TWindow.java b/src/jexer/TWindow.java index e047bc8..c7b59c8 100644 --- a/src/jexer/TWindow.java +++ b/src/jexer/TWindow.java @@ -1,4 +1,4 @@ -/** +/* * Jexer - Java Text User Interface * * License: LGPLv3 or later @@ -398,7 +398,7 @@ public class TWindow extends TWidget { * * @return the border color */ - private CellAttributes getBorder() { + public CellAttributes getBorder() { if (!isModal() && (inWindowMove || inWindowResize || inKeyboardResize) ) { @@ -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. */