Package org.rstudio.studio.client.common.GlobalDisplay

Examples of org.rstudio.studio.client.common.GlobalDisplay.NewWindowOptions


   {
      Size windowSize = ZoomUtils.getZoomWindowSize(
            display_.getViewerFrameSize(), zoomWindowDefaultSize_);

      // open and activate window
      NewWindowOptions options = new NewWindowOptions();
      options.setName("_rstudio_viewer_zoom");
      options.setFocus(true);
      options.setCallback(new OperationWithInput<WindowEx>() {
         @Override
         public void execute(WindowEx input)
         {
            zoomWindow_ = input;
         }
View Full Code Here


      // set size and position, if desired
      Size windowSize = adjustSize ?
            ScreenUtils.getAdjustedWindowSize(preferredSize) :
            preferredSize;
      NewWindowOptions options = new NewWindowOptions();
      if (position != null)
         options.setPosition(position);

      // open the satellite - it will call us back on registerAsSatellite
      // at which time we'll call setSessionInfo, setParams, etc.
      RStudioGinjector.INSTANCE.getGlobalDisplay().openSatelliteWindow(
                                              name,
View Full Code Here

      UrlBuilder urlBuilder = Window.Location.createUrlBuilder();
      urlBuilder.setParameter("view", viewName);
     
      // setup options
      if (options == null)
         options = new NewWindowOptions();
      options.setName(SatelliteUtils.getSatelliteWindowName(viewName));
      options.setFocus(true);
     
      // open window (force web codepath b/c desktop needs this so
      // that window.opener is hooked up)
View Full Code Here

      if (!haveActivePdfJsWindow())
      {
          // open the window and continue
          String viewerUrl =
                server_.getApplicationURL("pdf_js/web/viewer.html?file=");
          NewWindowOptions options = new NewWindowOptions();
          options.setName(WINDOW_NAME);
          if (pos != null)
             options.setPosition(pos);
          options.setCallback(new OperationWithInput<WindowEx>()
          {
             @Override
             public void execute(WindowEx win)
             {
                initializePdfJsWindow(win);
View Full Code Here

   }
  
   public void onBrowseUrl(BrowseUrlEvent event)
   {
      BrowseUrlInfo urlInfo = event.getUrlInfo();
      NewWindowOptions newWindowOptions = new NewWindowOptions();
      newWindowOptions.setName(urlInfo.getWindow());
      globalDisplay_.openWindow(urlInfo.getUrl(), newWindowOptions);
   }
View Full Code Here

   }
  
   public static void openZoomWindow(String name, String url, Size size,
                                     final OperationWithInput<WindowEx> onOpened)
   {
      NewWindowOptions options = new NewWindowOptions();
      options.setName(name);
      options.setFocus(true);
      options.setCallback(onOpened);
      RStudioGinjector.INSTANCE.getGlobalDisplay().openMinimalWindow(
                                       url,
                                       false,
                                       size.width,
                                       size.height,
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.GlobalDisplay.NewWindowOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.