use of org.pentaho.mantle.client.ui.tabs.MantleTabPanel in project pentaho-platform by pentaho.
the class ExecuteUrlInNewTabCommand method performOperation.
protected void performOperation() {
MantleTabPanel contentTabPanel = SolutionBrowserPanel.getInstance().getContentTabPanel();
// $NON-NLS-1$
contentTabPanel.showNewURLTab(this.tabName, this.tabToolTip, "about:blank", false);
NamedFrame namedFrame = ((IFrameTabPanel) contentTabPanel.getSelectedTab().getContent()).getFrame();
final FormPanel form = new FormPanel(namedFrame);
RootPanel.get().add(form);
form.setMethod(FormPanel.METHOD_POST);
form.setAction(url);
// $NON-NLS-1$
form.add(new Hidden("reportXml", URL.encode(xml)));
form.submit();
((IFrameTabPanel) contentTabPanel.getSelectedTab().getContent()).setForm(form);
}
Aggregations