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);
}
}
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);
}
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);
}
}
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);
}
}
Aggregations