Change-Id: I9e8409660f38e35c01adde69158c34e85cff3c43
setCaption(caption);
}
+ /**
+ * Creates a new push button with the given icon.
+ *
+ * @param icon
+ * the icon
+ */
+ public Button(Resource icon) {
+ this();
+ setIcon(icon);
+ }
+
+ /**
+ * Creates a new push button with the given caption and icon.
+ *
+ * @param caption
+ * the caption
+ * @param icon
+ * the icon
+ */
+ public Button(String caption, Resource icon) {
+ this();
+ setCaption(caption);
+ setIcon(icon);
+ }
+
/**
* Creates a new push button with a click listener.
*