Search in sources :

Example 11 with Frame

use of com.google.gwt.user.client.ui.Frame in project pentaho-platform by pentaho.

the class FilesToolbar method popupOpened.

@Override
public void popupOpened(PopupPanel panel) {
    IFrameTabPanel iframeTab = SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame();
    if (iframeTab == null || iframeTab.getFrame() == null) {
        return;
    }
    Frame currentFrame = iframeTab.getFrame();
    if (ElementUtils.elementsOverlap(panel.getElement(), currentFrame.getElement())) {
        FrameUtils.setEmbedVisibility(currentFrame, false);
    }
}
Also used : Frame(com.google.gwt.user.client.ui.Frame) IFrameTabPanel(org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)

Example 12 with Frame

use of com.google.gwt.user.client.ui.Frame in project pentaho-platform by pentaho.

the class FilesToolbar method popupClosed.

@Override
public void popupClosed(PopupPanel panel) {
    IFrameTabPanel iframeTab = SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame();
    if (iframeTab == null || iframeTab.getFrame() == null) {
        return;
    }
    Frame currentFrame = iframeTab.getFrame();
    FrameUtils.setEmbedVisibility(currentFrame, true);
}
Also used : Frame(com.google.gwt.user.client.ui.Frame) IFrameTabPanel(org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)

Example 13 with Frame

use of com.google.gwt.user.client.ui.Frame in project pentaho-platform by pentaho.

the class UrlCommand method performOperation.

protected void performOperation(boolean feedback) {
    if (showInDialog) {
        // $NON-NLS-1$
        String height = dialogHeight + "px";
        // $NON-NLS-1$
        String width = dialogWidth + "px";
        final Frame frame = new Frame(url);
        final PromptDialogBox dialogBox = new PromptDialogBox(title, Messages.getString("ok"), null, false, false);
        dialogBox.setStylePrimaryName("pentaho-dialog");
        dialogBox.setText(title);
        dialogBox.setContent(frame);
        frame.setSize(width, height);
        dialogBox.center();
        frame.setSize(width, height);
    } else {
        SolutionBrowserPanel navigatorPerspective = SolutionBrowserPanel.getInstance();
        // $NON-NLS-1$
        navigatorPerspective.getContentTabPanel().showNewURLTab(title, "", url, false);
    }
}
Also used : Frame(com.google.gwt.user.client.ui.Frame) PromptDialogBox(org.pentaho.gwt.widgets.client.dialogs.PromptDialogBox) SolutionBrowserPanel(org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)

Example 14 with Frame

use of com.google.gwt.user.client.ui.Frame in project pentaho-platform by pentaho.

the class MantlePopupPanel method show.

@Override
public void show() {
    super.show();
    IFrameTabPanel iframeTab = SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame();
    if (iframeTab == null || iframeTab.getFrame() == null) {
        return;
    }
    Frame currentFrame = iframeTab.getFrame();
    if (ElementUtils.elementsOverlap(this.getElement(), currentFrame.getElement())) {
        FrameUtils.setEmbedVisibility(currentFrame, false);
    }
}
Also used : Frame(com.google.gwt.user.client.ui.Frame) IFrameTabPanel(org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)

Aggregations

Frame (com.google.gwt.user.client.ui.Frame)14 IFrameTabPanel (org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)5 Widget (com.google.gwt.user.client.ui.Widget)3 Element (com.google.gwt.user.client.Element)2 MenuItem (com.google.gwt.user.client.ui.MenuItem)2 Test (org.junit.Test)2 Node (com.google.gwt.dom.client.Node)1 Style (com.google.gwt.dom.client.Style)1 MenuBar (com.google.gwt.user.client.ui.MenuBar)1 PromptDialogBox (org.pentaho.gwt.widgets.client.dialogs.PromptDialogBox)1 PentahoMenuItem (org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem)1 MantleXulOverlay (org.pentaho.mantle.client.objects.MantleXulOverlay)1 SolutionBrowserPanel (org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel)1 JsXulOverlay (org.pentaho.mantle.client.ui.xul.JsXulOverlay)1 XulOverlay (org.pentaho.ui.xul.XulOverlay)1 Bindable (org.pentaho.ui.xul.stereotype.Bindable)1