Package org.rstudio.core.client.widget

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


     * Converts the <code>Application</code> XMLBean into a <code>UnitActionPackage</code> object.
     * @param application  the <code>Application</code> XMLBean to convert.
     * @return the converted <code>UnitActionPackage</code> object.
     */
    public static UnitActionPackage convertWADLtoUnitActionPackage(final Application application) {
        Resources resources = application.getResources();
        String baseURL = resources.getBase();
        if (!baseURL.endsWith("/")) {
            baseURL += "/";
        }
        List<Resource> resourceList = resources.getResourceList();

        List<UnitAction> unitActionList = new ArrayList<UnitAction>();
        for (Resource resource : resourceList) {
            unitActionList.addAll(convertResourceToUnitAction(resource));
        }
View Full Code Here


    public static String generateWADLForMashupRESTService(String myCocktailPath, int mashupId) throws DAOException, IOException {
        Mashup mashup = getMashup(mashupId);
       
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();
        Resources resources = application.addNewResources();
        resources.setBase(myCocktailPath);
       
        Resource resource = resources.addNewResource();
        resource.setPath("RESTService/mashupId="+mashupId);
       
        addResource(resource, "json""format=json",  mashup, "application/json");
        addResource(resource, "xml",   "format=xml",   mashup, "application/xml");
        addResource(resource, "jsonp", "format=jsonp", mashup, "application/javascript");
View Full Code Here

    public static String generateWADLForMashupRESTServiceJSON(String myCocktailPath, int mashupId) throws DAOException, IOException {
        Mashup mashup = getMashup(mashupId);
       
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();
        Resources resources = application.addNewResources();
        resources.setBase(myCocktailPath);
       
        Resource resource = resources.addNewResource();
        resource.setPath("RESTService/mashupId="+mashupId);
       
        addMethod(resource.addNewMethod(), "json", mashup, "application/json");
       
        return applicationDocument.xmlText(new XmlOptions().setSavePrettyPrint());
View Full Code Here

public class AboutDialog extends ModalDialogBase
{
   public AboutDialog(ProductInfo info)
   {
      setText("About RStudio");
      ThemedButton OKButton = new ThemedButton("OK",
         new ClickHandler()
      {
            @Override
            public void onClick(ClickEvent event) {
               closeDialog();  
View Full Code Here

      super(caption, checkOperation, cancelOperation);
      actionsDS_ = actionsDS;
     
      setOkButtonCaption(okCaption);
   
      addLeftButton(selectAllButton_ = new ThemedButton("Select All",
                                                        new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
           setGlobalPerformAction(true);      
         }
      }));
    
      addLeftButton(selectNoneButton_ = new ThemedButton("Select None",
                                                         new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
            setGlobalPerformAction(false);  
View Full Code Here

                       final ManipulatorChangedHandler changedHandler)
   {
      super(variable, button, changedHandler);
        
      // button
      button_ = new ThemedButton(button.getLabel());
      button_.addClickHandler(new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
            ManipulatorControlButton.this.onValueChanged(
View Full Code Here

      numObjects_ = numObjects;
     
      setText("Confirm Remove Objects");
      setButtonAlignment(HasHorizontalAlignment.ALIGN_CENTER);
     
      ThemedButton yesButton = new ThemedButton("Yes", new ClickHandler()
      {
         public void onClick(ClickEvent event)
         {
            if (okOperation != null)
               okOperation.execute(chkIncludeHidden_.getValue(), progress_);
View Full Code Here

               return commitDraft_;
            }
         };
      }

      ThemedButton commitButton = new ThemedButton("Commit",
                                                    new ClickHandler() {
         public void onClick(ClickEvent event)
         {
            attemptCommit();
         }
View Full Code Here

      defaultPlotName_ = defaultPlotName;
      options_ = options;
     
      progressIndicator_ = addProgressIndicator();
     
      ThemedButton saveButton = new ThemedButton("Save",
                                                 new ClickHandler() {
         public void onClick(ClickEvent event)
         {
            attemptSavePdf(false, new Operation() {
               @Override
               public void execute()
               {
                  // get options to send back to caller for persistence
                  PaperSize paperSize = paperSizeEditor_.selectedPaperSize();
                  SavePlotAsPdfOptions pdfOptions = SavePlotAsPdfOptions.create(
                                             paperSize.getWidth(),
                                             paperSize.getHeight(),
                                             isPortraitOrientation(),
                                             useCairoPdf(),
                                             viewAfterSaveCheckBox_.getValue());
              
                  onClose.execute(pdfOptions);
                 
                  closeDialog();  
               }
            });
         }
      });
      addOkButton(saveButton);
      addCancelButton();
     
     
      ThemedButton previewButton =  new ThemedButton("Preview",
                                                     new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         { 
            // get temp file for preview
View Full Code Here

      if (haveCairoPdf)
         grid.setWidget(2, 1, cairoPdfPanel);
     
      grid.setWidget(3, 0, new HTML("&nbsp;"));
     
      ThemedButton directoryButton = new ThemedButton("Directory...");
      directoryButton.setStylePrimaryName(styles.directoryButton());
      directoryButton.getElement().getStyle().setMarginLeft(-2, Unit.PX);
      grid.setWidget(4, 0, directoryButton);
      directoryButton.addClickHandler(new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
            fileDialogs_.chooseFolder(
               "Choose Directory",
View Full Code Here

TOP

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

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.