public void execute() {
this.bus.fireEvent(new GetFormRepresentationEvent(this.saveType));
}
protected void refreshPopup(String url) {
WindowPanel window = UIUtils.createWindow("Preview as " + this.saveType);
window.getDesktopPanel().addStyleName("formDisplay");
Frame content = new Frame(url);
window.setWidget(content);
int height = RootPanel.getBodyElement().getClientHeight();
int width = RootPanel.getBodyElement().getClientWidth();
int left = RootPanel.getBodyElement().getAbsoluteLeft();
int top = RootPanel.getBodyElement().getAbsoluteTop();
content.setPixelSize(width - 200, height - 200);
window.showModal();
window.setPopupPosition(left + 100, top + 100);
window.setPixelSize(width - 200, height - 200);
}