color chooser widget
[nikiroo-utils.git] / src / jexer / TWindow.java
index 97c607e42f8e687537c82154489f77e0d440bb8f..c7b59c82ab5d9d19a90f843668c6695c03c122b5 100644 (file)
@@ -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.
      */