X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWidget.java;h=d292ec1490c938f304e142a565551d8eb6060e74;hb=be72cb5ccbd42fe304c0acafc380c5636f0d03a2;hp=08c0a45ca9c68c28c8345b14faa5f1344d852daf;hpb=f6d9020703931f645f553b59426e085a81e90c60;p=fanfix.git diff --git a/src/jexer/TWidget.java b/src/jexer/TWidget.java index 08c0a45..d292ec1 100644 --- a/src/jexer/TWidget.java +++ b/src/jexer/TWidget.java @@ -550,6 +550,13 @@ public abstract class TWidget implements Comparable { } } + /** + * Repaint the screen on the next update. + */ + public void doRepaint() { + window.getApplication().doRepaint(); + } + // ------------------------------------------------------------------------ // Constructors ----------------------------------------------------------- // ------------------------------------------------------------------------ @@ -990,7 +997,8 @@ public abstract class TWidget implements Comparable { /** * Method that subclasses can override to do processing when the UI is - * idle. + * idle. Note that repainting is NOT assumed. To get a refresh after + * onIdle, call doRepaint(). */ public void onIdle() { // Default: do nothing, pass to children instead