private void hidePDFFrames(MenuItem item) {
   Frame frame = getActiveBrowserPerspectiveFrame();
   if (frame == null) {
     return;
   }
   if (item.getSubMenu() != null && item.getSubMenu().isVisible()) {
     if (ElementUtils.elementsOverlap(
         item.getSubMenu().getElement(), getActiveBrowserPerspectiveFrame().getElement())) {
       FrameUtils.setEmbedVisibility(getActiveBrowserPerspectiveFrame(), false);
     }
   } else if (item.getParentMenu() != null) { // popups
     if (ElementUtils.elementsOverlap(
         item.getParentMenu().getElement(), getActiveBrowserPerspectiveFrame().getElement())) {
       FrameUtils.setEmbedVisibility(getActiveBrowserPerspectiveFrame(), false);
     }
   }
 }
예제 #2
0
 @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);
   }
 }