Search in sources :

Example 1 with MantleTabPanel

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);
}
Also used : FormPanel(com.google.gwt.user.client.ui.FormPanel) MantleTabPanel(org.pentaho.mantle.client.ui.tabs.MantleTabPanel) Hidden(com.google.gwt.user.client.ui.Hidden) IFrameTabPanel(org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel) NamedFrame(com.google.gwt.user.client.ui.NamedFrame)

Aggregations

FormPanel (com.google.gwt.user.client.ui.FormPanel)1 Hidden (com.google.gwt.user.client.ui.Hidden)1 NamedFrame (com.google.gwt.user.client.ui.NamedFrame)1 IFrameTabPanel (org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)1 MantleTabPanel (org.pentaho.mantle.client.ui.tabs.MantleTabPanel)1