#51 wip
[fanfix.git] / src / jexer / TWindow.java
index 6763df3063640e5e2504dfa34d2e6f5bf6997b43..e0a20734341f3f19405810df7ad3595ff3058a25 100644 (file)
@@ -1431,4 +1431,16 @@ public class TWindow extends TWidget {
         this.hideMouse = hideMouse;
     }
 
+    /**
+     * Generate a human-readable string for this window.
+     *
+     * @return a human-readable string
+     */
+    @Override
+    public String toString() {
+        return String.format("%s(%8x) \'%s\' position (%d, %d) geometry %dx%d" +
+            " hidden %s modal %s", getClass().getName(), hashCode(), title,
+            getX(), getY(), getWidth(), getHeight(), hidden, isModal());
+    }
+
 }