});
}
private void showSavePanel(final FormRepresentation form) {
if (form.getName() == null || "".equals(form.getName())) {
final FormDataPopupPanel panel = new FormDataPopupPanel(true);
panel.setAction(form.getAction());
panel.setEnctype(form.getEnctype());
panel.setMethod(form.getMethod());
panel.setName(form.getName());
panel.setTaskId(form.getTaskId());
panel.setModal(true);
panel.setPopupPosition(
RootPanel.getBodyElement().getClientWidth() / 2 - 150,
RootPanel.getBodyElement().getClientHeight() / 2 - 150);
panel.show();
panel.addCloseHandler(new CloseHandler<PopupPanel>() {
@Override
public void onClose(CloseEvent<PopupPanel> event) {
saveForm(panel, form);
}
});