Package com.google.speedtracer.client.view

Examples of com.google.speedtracer.client.view.HoveringPopup$Resources


    // The Panel that contains the Visualizations.
    monitorVisualizationsPanel = new MonitorVisualizationsPanel(
        Root.getContainer(), controller, pageStates.get(0), resources);

    // Create the reusable hovering popup once (invisible until we need it)
    popup = new HoveringPopup(Root.getContainer(), resources);

    HotKey.register('B', new BuildInfoView(version),
        "Show revision information.");

    HotKey.register('M', new SymbolServerEntryPanel(
View Full Code Here


                if (!inlineMenu.isVisible()) {
                  inlineMenu.show(mX, mY);
                }
              } else {
                // go straight to the popup help
                HoveringPopup popup = Monitor.getPopup();
                PopupContentProvider content = menuSource.getPopupContent();
                if (content != null) {
                  popup.setContentProvider(content);
                  popup.show(mX, mY);
                }
              }
            }

          });
View Full Code Here

      FastTooltip tip = new FastTooltip(container, tooltipText, resources);
      tip.getElement().getStyle().setProperty("cursor", "pointer");
      ClickEvent.addClickListener(this, tip.getElement(), new ClickListener() {

        public void onClick(ClickEvent event) {
          HoveringPopup popup = Monitor.getPopup();
          popup.setContentProvider(createTooltipPoupupContent());
          Div interactiveComponent = PageTransitionMarker.this.interactiveComponent;
          popup.show(interactiveComponent.getAbsoluteLeft(),
              interactiveComponent.getAbsoluteTop());
        }
      });

      interactiveComponent.getElement().appendChild(tip.getElement());
View Full Code Here

     * 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

TOP

Related Classes of com.google.speedtracer.client.view.HoveringPopup$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.