Package com.google.collide.client.testing

Examples of com.google.collide.client.testing.DebugAttributeSetter


      sliderRight.getStyle().removeProperty("right");

      CssUtils.setClassNameEnabled(sliderLeft, css.sliderFlex(), active);
      CssUtils.setClassNameEnabled(sliderRight, css.sliderFlex(), !active);
      new DebugAttributeSetter().add(SLIDER_MODE, String.valueOf(active)).on(getElement());
    }
View Full Code Here


      element = Elements.createDivElement();
      element.getStyle().setPosition(CSSStyleDeclaration.Position.ABSOLUTE);
      lineRendererController.renderLine(line, lineNumber, element, true);
      line.putTag(LINE_TAG_LINE_ELEMENT, element);
    }
    new DebugAttributeSetter().add("lineNum", Integer.toString(lineNumber)).on(element);

    if (!buffer.hasLineElement(element)) {
      element.getStyle().setTop(top + createOffset, CSSStyleDeclaration.Unit.PX);
      buffer.addLineElement(element);
      if (createOffset != 0) {
View Full Code Here

    View(Resources resources) {
      this.resources = resources;
      css = resources.workspaceEditorDebuggingSidebarHeaderCss();
      sliderView = new Slider.View(resources);

      new DebugAttributeSetter().setId(DebugId.DEBUG_BREAKPOINT_SLIDER).on(sliderView.getElement());

      Element rootElement = createRootElement(sliderView.getElement());
      setElement(rootElement);
    }
View Full Code Here

        getElement().getStyle().setWidth(100, CSSStyleDeclaration.Unit.PCT);
        getElement().getStyle().setMarginLeft(0, CSSStyleDeclaration.Unit.PX);
      }

      // Render the particular message type's style
      DebugAttributeSetter debugSetter = new DebugAttributeSetter();
      switch (message.getType()) {
        case LOADING:
          debugSetter.add("status", "loading");
          getElement().setClassName(css.statusLoading());
          break;
        case CONFIRMATION:
          debugSetter.add("status", "confirmation");
          getElement().setClassName(css.statusConfirmation());
          break;
        case ERROR:
          debugSetter.add("status", "error");
          getElement().setClassName(css.statusError());
          break;
        case FATAL:
          debugSetter.add("status", "fatal");
          getElement().setClassName(css.fatal());
          getDelegate().onStatusExpanded();
          break;
        default:
          debugSetter.add("status", "unknown");
          Log.error(getClass(), "Got a status message of unknown type " + message.getType());
      }
      debugSetter.on(getElement());
    }
View Full Code Here

        @Override
        public void handleEvent(Event evt) {
          getDelegate().onStatusDismissed();
        }
      });
      new DebugAttributeSetter().setId(DebugId.STATUS_PRESENTER).on(root);

      longText = Elements.createPreElement();
      longText.setClassName(css.longText());
      longText.getStyle().setDisplay(CSSStyleDeclaration.Display.NONE);
View Full Code Here

    @Override
    public void render(Element listItemBase, FileTreeMenuItem item) {
      if (item.isDisabled()) {
        listItemBase.getStyle().setColor(DISABLED_COLOR);
      }
      new DebugAttributeSetter().add("disabled", Boolean.toString(item.isDisabled()))
          .on(listItemBase);
      listItemBase.setTextContent(item.toString());
    }
View Full Code Here

      // workspace's visibility
      // settings.
      shareImageButton = new ImageButton.Builder(res).setText("Share")
          .setElement((elemental.html.AnchorElement) shareButton).build();
      setShareButtonVisible(false);
      new DebugAttributeSetter().setId(DebugId.WORKSPACE_HEADER_SHARE_BUTTON)
          .on(shareImageButton.getView().getElement());

      // Tooltips
      Tooltip.create(res, Elements.asJsElement(runButton), VerticalAlign.BOTTOM,
          HorizontalAlign.MIDDLE, "Preview file or application");
View Full Code Here

    if (element == null) {
      element = Elements.createDivElement(css.breakpoint());
      element.getStyle().setTop(editor.getBuffer().calculateLineTop(lineNumber),
          CSSStyleDeclaration.Unit.PX);

      new DebugAttributeSetter().add("linenumber", String.valueOf(lineNumber + 1)).on(element);

      editor.getLeftGutter().addUnmanagedElement(element);
      lineNumberToElementCache.put(lineNumber, element);
    }
View Full Code Here

    this.editor = editor;
    document = editor.getDocument();
    lineExecutionAnchor = createExecutionLineAnchor(document, lineNumber);

    bufferExecutionLine = Elements.createDivElement(bufferLineClassName);
    new DebugAttributeSetter().add("linenumber", String.valueOf(lineNumber + 1)).on(
        bufferExecutionLine);
    editor.getBuffer().addAnchoredElement(lineExecutionAnchor, bufferExecutionLine);

    gutterExecutionLine = Elements.createDivElement(gutterLineClassName);
    new DebugAttributeSetter().add("linenumber", String.valueOf(lineNumber + 1)).on(
        gutterExecutionLine);
    editor.getLeftGutter().addAnchoredElement(lineExecutionAnchor, gutterExecutionLine);
  }
View Full Code Here

    @Override
    public void render(Element listItemBase, FileTreeMenuItem item) {
      if (item.isDisabled()) {
        listItemBase.getStyle().setColor(DISABLED_COLOR);
      }
      new DebugAttributeSetter().add("disabled", Boolean.toString(item.isDisabled()))
          .on(listItemBase);
      listItemBase.setTextContent(item.toString());
    }
View Full Code Here

TOP

Related Classes of com.google.collide.client.testing.DebugAttributeSetter

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.