Added removeAllWidgets method
@@ -108,6 +108,14 @@ public void removeWidget(UIWidget widget) {
hints.remove(widget);
}
+ /**
+ * Removes all widgets from this layout's widget list.
+ */
+ public void removeAllWidgets() {
+ contents.clear();
+ hints.clear();
+ }
+
/**
* Draws the widgets contained in this layout's widget list,
* according to the widths calculated in {@link #calcWidths(Canvas)}.
