Examples of EditCapabilityWidget


Examples of com.google.testing.testify.risk.frontend.client.view.widgets.EditCapabilityWidget

  @Override
  public void setProjectLabels(Collection<String> labels) {
    projectLabels.clear();
    projectLabels.addAll(labels);
    for (Widget w : capabilitiesContainer) {
      EditCapabilityWidget capabilityWidget = (EditCapabilityWidget) w;
      capabilityWidget.setLabelSuggestions(projectLabels);
    }
  }
View Full Code Here

Examples of com.google.testing.testify.risk.frontend.client.view.widgets.EditCapabilityWidget

      for (final Capability capability : capabilities) {
        // If we're interested in this capability (it matches our current filter).
        if (capability.getComponentId() == component.getComponentId()
            && capability.getAttributeId() == attribute.getAttributeId()) {
          // Create and populate a capability widget for this capability.
          final EditCapabilityWidget widget = new EditCapabilityWidget(capability);
          widget.addValueChangeHandler(new ValueChangeHandler<Capability>() {
              @Override
              public void onValueChange(ValueChangeEvent<Capability> event) {
                if (event.getValue() == null) {
                  // Since the value is null, we'll just use the old value to grab the ID.
                  removeCapability(capability);
                } else {
                  updateCapability(event.getValue());
                  widget.showSaved();
                }
              }
            });
          widget.setComponents(components);
          widget.setAttributes(attributes);
          widget.setLabelSuggestions(projectLabels);
          if (isEditable) {
            widget.makeEditable();
          }
          widgets.add(widget);
        }
      }
View Full Code Here

Examples of com.google.testing.testify.risk.frontend.client.view.widgets.EditCapabilityWidget

    if (attributes != null && components != null && capability != null && bugs != null &&
        tests != null && checkins != null) {
      splitData(tests, otherTests, capabilityTests);
      splitData(bugs, otherBugs, capabilityBugs);
      splitData(checkins, otherCheckins, capabilityCheckins);
      capabilityWidget = new EditCapabilityWidget(capability);
      capabilityWidget.setLabelSuggestions(projectLabels);
      capabilityWidget.setAttributes(attributes);
      capabilityWidget.setComponents(components);
      capabilityWidget.disableDelete();
      if (isEditable) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.