dialogContents.setCellHorizontalAlignment(image, HasHorizontalAlignment.ALIGN_CENTER);
final DialogBox dialogBox = this;
// Add a close button at the bottom of the dialog.
Button closeButton = new Button(c.Close(), new ClickListener() {
public void onClick(Widget sender) {
dialogBox.hide();
}
});
dialogContents.add(closeButton);
if (LocaleInfo.getCurrentLocale().isRTL()) {
dialogContents.setCellHorizontalAlignment(closeButton, HasHorizontalAlignment.ALIGN_LEFT);