Package org.rstudio.studio.client.shiny.model

Examples of org.rstudio.studio.client.shiny.model.ShinyApplicationParams


   }

   @Override
   protected void onInitialize(LayoutPanel mainPanel, JavaScriptObject params)
   {
      ShinyApplicationParams appParams = params.cast();
      Window.setTitle(appParams.getPath() + " - " + "Shiny");
      ShinyApplicationPresenter appPresenter = pPresenter_.get();
      appPresenter.loadApp(appParams);
     
      // make it fill the containing layout panel
      Widget presWidget = appPresenter.asWidget();
View Full Code Here


      // (we close and reopen as a workaround to forcefully activate the window
      // on browsers that don't permit manual event reactivation)
      if (satellite_.isReactivatePending())
         return;
     
      ShinyApplicationParams params = ShinyApplicationParams.create(
            params_.getPath(),
            params_.getUrl(),
            appStopped_ ?
               ShinyApplicationParams.STATE_STOPPED :
               ShinyApplicationParams.STATE_STOPPING);
View Full Code Here

   // Private methods ---------------------------------------------------------

   private void notifyShinyAppClosed(JavaScriptObject params)
   {
      ShinyApplicationParams appState = params.cast();
     
      // if we don't know that an app is running, ignore this event
      if (currentAppFilePath_ == null)
         return;
     
      // If the application is stopping, then the user initiated the stop by
      // closing the app window. Interrupt R to stop the Shiny app.
      if (appState.getState().equals(ShinyApplicationParams.STATE_STOPPING))
      {
         if (commands_.interruptR().isEnabled())
            commands_.interruptR().execute();
         appState.setState(ShinyApplicationParams.STATE_STOPPED);
      }
      eventBus_.fireEvent(new ShinyApplicationStatusEvent(
            (ShinyApplicationParams) params.cast()));
   }
View Full Code Here

            SourceExtendedTypeDetectedEvent.Data data = event.getData();
            eventBus_.fireEvent(new SourceExtendedTypeDetectedEvent(data));
         }
         else if (type.equals(ClientEvent.ShinyViewer))
         {
            ShinyApplicationParams data = event.getData();
            eventBus_.fireEvent(new ShinyApplicationStatusEvent(data));
         }
         else if (type.equals(ClientEvent.DebugSourceCompleted))
         {
            DebugSourceResult result = (DebugSourceResult)event.getData();
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.shiny.model.ShinyApplicationParams

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.