*/
@Deprecated
public void setCaption(String captionText, String iconUrl,
List<String> styles, String error, boolean showError,
boolean required, boolean enabled) {
Icon icon;
if (FontIcon.isFontIconUri(iconUrl)) {
icon = GWT.create(FontIcon.class);
} else {
icon = GWT.create(ImageIcon.class);
}
icon.setUri(iconUrl);
setCaption(captionText, icon, styles, error, showError, required,
enabled);
}