Package com.google.gwt.topspin.ui.client

Examples of com.google.gwt.topspin.ui.client.ClickListener


    this.dataDispatcher = dataDispatcher;
    this.resources = resources;
    this.elem = uiBinder.createAndBindUi(this);

    // Wire up the close button.
    ClickEvent.addClickListener(closeButton, closeButton, new ClickListener() {

      public void onClick(ClickEvent event) {
        MergeProfilesPanel.this.hide();
      }
    });

    // Wire up the search button.
    ClickEvent.addClickListener(searchButton, searchButton,
        new ClickListener() {
          public void onClick(ClickEvent event) {
            if (null == regexpInput.getValue()) {
              return;
            }
            search(
View Full Code Here


  public void show() {
    base.show();
  }

  private void sinkEvents() {
    base.addClickListener(new ClickListener() {
      public void onClick(ClickEvent event) {
        sendProfilingOptions();
      }
    });
  }
View Full Code Here

    helpIcon = DocumentExt.get().createDivWithClassName(css.help());

    elem.appendChild(contentDiv);
    elem.appendChild(helpIcon);

    ClickEvent.addClickListener(helpIcon, helpIcon, new ClickListener() {
      public void onClick(ClickEvent event) {
        Monitor.getPopup().show(startX, startY);
      }
    });
  }
View Full Code Here

    final CheckBox logsCheckBox = new CheckBox(row1Container);
    logsCheckBox.setChecked(true);
    Element logsLabel = doc.createSpanElement();
    logsLabel.setInnerText("Logs");
    row1.getElement().appendChild(logsLabel);
    logsCheckBox.addClickListener(new ClickListener() {
      public void onClick(ClickEvent event) {
        eventFilter.setFilterUserLogs(!logsCheckBox.isChecked());
        eventTable.renderTable();
      }
    });

    final CheckBox hintletsCheckBox = new CheckBox(row1Container);
    hintletsCheckBox.setChecked(true);
    Element hintletsLabel = doc.createSpanElement();
    hintletsLabel.setInnerText("Hints");
    row1.getElement().appendChild(hintletsLabel);
    hintletsCheckBox.addClickListener(new ClickListener() {
      public void onClick(ClickEvent event) {
        eventFilter.setFilterHints(!hintletsCheckBox.isChecked());
        eventTable.renderTable();
      }
    });
View Full Code Here

    details = new RequestDetails(getElement(), networkResource, listenerOwner,
        resources, serverEventController);

    // Add the ClickListener to toggle the visibility
    manageEventListener(ClickEvent.addClickListener(parentRowElement,
        parentRowElement, new ClickListener() {
          public void onClick(ClickEvent event) {
            details.toggleVisibility();
          }
        }));
View Full Code Here

        String url = ((PageTransitionModel) markerModel).url;
        tooltipText = (url == null || url.equals("")) ? "<blank page>" : url;
      }
      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;
View Full Code Here

    lineLink.setInnerText("Line " + stackFrame.getLineNumber() + columnStr);
    lineLink.setHref("javascript:;");
    myElem.appendChild(lineLink);
    myElem.appendChild(document.createBRElement());
    stackTraceRenderer.getListenerManager().manageEventListener(
        ClickEvent.addClickListener(lineLink, lineLink, new ClickListener() {
          public void onClick(ClickEvent event) {
            stackTraceRenderer.getSourceClickListener().onSymbolClicked(
                resource.getUrl(), null, stackFrame.getLineNumber(),
                stackFrame.getColumnOffset(), null);
          }
View Full Code Here

    symbolLink.setClassName(stackTraceRenderer.getResources().stackFrameRendererCss().resymbolizedSymbol());
    myElem.appendChild(symbolLink);
    myElem.appendChild(document.createBRElement());
    stackTraceRenderer.getListenerManager().manageEventListener(
        ClickEvent.addClickListener(symbolLink, symbolLink,
            new ClickListener() {
              public void onClick(ClickEvent event) {
                sourcePresenter.showSource(sourceServer
                    + sourceSymbol.getResourceUrl().getPath(),
                    sourceViewerServer, sourceSymbol.getLineNumber(), 0,
                    sourceSymbol.getAbsoluteFilePath());
View Full Code Here

    // Make sure the dialog is created hidden.
    glassPane.setVisible(false);
    reportPane.setVisible(false);
    closeButton.setVisible(false);

    closeButton.addClickListener(new ClickListener() {
      public void onClick(ClickEvent event) {
        setVisible(false);
      }
    });
View Full Code Here

   * TODO (jaimeyap): This should be moved into the HintletReport class.
   */
  private void buildHintReportScopeBar(ScopeBar.Resources resources,
      Container container) {
    ScopeBar scopeBar = new ScopeBar(container, resources);
    scopeBar.add("All", new ClickListener() {
      public void onClick(ClickEvent event) {
        report.setType(HintletReport.REPORT_TYPE_TIME);
      }
    });
    scopeBar.add("Rule", new ClickListener() {
      public void onClick(ClickEvent event) {
        report.setType(HintletReport.REPORT_TYPE_RULE);
      }
    });
    Element severity = scopeBar.add("Severity", new ClickListener() {
      public void onClick(ClickEvent event) {
        report.setType(HintletReport.REPORT_TYPE_SEVERITY);
      }
    });
    scopeBar.setSelected(severity, false);
View Full Code Here

TOP

Related Classes of com.google.gwt.topspin.ui.client.ClickListener

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.