Package org.rstudio.core.client.widget

Examples of org.rstudio.core.client.widget.ThemedButton


      roxygenizePanel_ = new VerticalPanel();
      roxygenizePanel_.addStyleName(RES.styles().buildToolsRoxygenize());
      HorizontalPanel rocletPanel = new HorizontalPanel();
      chkUseRoxygen_ = checkBox("Generate documentation with Roxygen");
      rocletPanel.add(chkUseRoxygen_);
      btnConfigureRoxygen_ = new ThemedButton("Configure...");
      btnConfigureRoxygen_.addClickHandler(new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
            new BuildToolsRoxygenOptionsDialog(
View Full Code Here


   {
      super(options, previewer);
    
      setText("Copy Plot to Clipboard");
     
      ThemedButton copyButton = new ThemedButton("Copy Plot",
            new ClickHandler() {
         public void onClick(ClickEvent event)
         {
            // do the copy
            performCopy(new Operation() {
View Full Code Here

    
      setText("Copy Plot to Clipboard");
     
      ExportPlotResources resources = ExportPlotResources.INSTANCE;
     
      ThemedButton closeButton = new ThemedButton("Close",
            new ClickHandler() {
         public void onClick(ClickEvent event)
         {
            // save options
            onClose.execute(getCurrentOptions(options));
View Full Code Here

                               
   {
      super(server, display, new ShinyAppsDeploy());
      setText("Publish to ShinyApps");
      setWidth("350px");
      deployButton_ = new ThemedButton("Publish");
      addCancelButton();
      addOkButton(deployButton_);
      sourceDir_ = sourceDir;
      sourceFile_ = sourceFile;
      events_ = events;
View Full Code Here

   {
      super(server, display, new ShinyAppsAccountManager());
      setText("Manage ShinyApps Accounts");
      setWidth("300px");

      connectButton_ = new ThemedButton("Connect...");
      connectButton_.addClickHandler(new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
         {
            onConnect();
         }
      });
      disconnectButton_ = new ThemedButton("Disconnect");
      disconnectButton_.addClickHandler(new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
         {
            onDisconnect();
         }
      });
      disconnectButton_.setEnabled(false);
      doneButton_ = new ThemedButton("Done");
      doneButton_.addClickHandler(new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
         {
View Full Code Here

      HTML createLink = new HTML("<small>Need a ShinyApps account?<br />" +
            "Get started at <a href=\"http://shinyapps.io/\"" +
            "target=\"blank\">http://shinyapps.io</a></small>");
      createLink.setStyleName(contents_.getStyle().spaced());
      addLeftWidget(createLink);
      connectButton_ = new ThemedButton("Connect");
      connectButton_.setEnabled(false);
      connectButton_.addClickHandler(new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
View Full Code Here

         final OperationWithInput<Integer> onSelected)
   {
      warning_ = new ShinyDocumentWarning();
      setWidth("400px");
      setText("Shiny Content");
      addOkButton(new ThemedButton("Yes, Once",
            returnResult(onSelected, RENDER_SHINY_ONCE)));
      addButton(new ThemedButton("Yes, Always",
            returnResult(onSelected, RENDER_SHINY_ALWAYS)));
      addLeftButton(new ThemedButton("No",
            returnResult(onSelected, RENDER_SHINY_NO)));
   }
View Full Code Here

      operation_ = operation;

      setTitle(caption);
      setText(title);

      addLeftButton(new ThemedButton("New Folder", new NewFolderHandler()));

      addOkButton(new ThemedButton(buttonName, new ClickHandler()
      {
         public void onClick(ClickEvent event)
         {
            maybeAccept();
         }
      }));
      addCancelButton(new ThemedButton("Cancel", new ClickHandler() {
         public void onClick(ClickEvent event) {
            if (invokeOperationEvenOnCancel_)
            {
               operation_.execute(null, FileSystemDialog.this);
            }
View Full Code Here

        
         // not using comments for now
         commentLabel.setVisible(false);
         commentTextArea_.setVisible(false);
        
         previewButton_ = new ThemedButton("Preview");
         previewButton_.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event)
            {
               htmlGenerator_.generateRPubsHtml(
                  titleTextBox_.getText().trim(),
                  commentTextArea_.getText().trim(),
                  new CommandWithArg<String>() {
                     @Override
                     public void execute(String rpubsFile)
                     {
                        globalDisplay_.showHtmlFile(rpubsFile);
                     }
                  });      
            }
         });
         addLeftButton(previewButton_);
      }
     
      HTML warningLabel =  new HTML(
        "<strong>IMPORTANT: All documents published to RPubs are " +
        "publicly visible.</strong> You should " +
        "only publish documents that you wish to share publicly.");
      warningLabel.addStyleName(styles.warningLabel());
      verticalPanel.add(warningLabel);
       
      ThemedButton cancelButton = createCancelButton(new Operation() {
         @Override
         public void execute()
         {
            // if an upload is in progress then terminate it
            if (uploadInProgress_)
            {
               server_.rpubsTerminateUpload(contextId_,
                                            new VoidServerRequestCallback());
              
               if (uploadProgressWindow_ != null)
                  uploadProgressWindow_.close();
            }
         }
        
      });

      continueButton_ = new ThemedButton("Publish", new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {  
            performUpload(false);
         }
      });

      updateButton_ = new ThemedButton("Update Existing", new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
         {
            performUpload(true);
         }
      });

      createButton_ = new ThemedButton("Create New", new ClickHandler()
      {
         @Override
         public void onClick(ClickEvent event)
         {
            performUpload(false);
View Full Code Here

      alwaysSaveOption_ = StringUtil.notNull(alwaysSaveOption);
      targets_ = dirtyTargets;
     
      setOkButtonCaption("Save Selected");
                 
      addLeftButton(new ThemedButton("Don't Save", new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
           closeDialog();
           saveOperation.execute(new Result(
View Full Code Here

TOP

Related Classes of org.rstudio.core.client.widget.ThemedButton

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.