timer and progress bar working
[fanfix.git] / src / jexer / TWidget.java
index 6c03a9cccef8d85c4fb934022e88d545a2922d32..1ab54e29b484e4220a79a06624290aa300968701 100644 (file)
@@ -1016,4 +1016,18 @@ public abstract class TWidget implements Comparable<TWidget> {
         return new TCheckbox(this, x, y, label, checked);
     }
 
+    /**
+     * Convenience function to add a progress bar to this container/window.
+     *
+     * @param x column relative to parent
+     * @param y row relative to parent
+     * @param width width of progress bar
+     * @param value initial value of percent complete
+     */
+    public final TProgressBar addProgressBar(final int x, final int y,
+        final int width, final int value) {
+
+        return new TProgressBar(this, x, y, width, value);
+    }
+
 }