Examples of LabelWidget


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

  public void setLabelSuggestions(Collection<String> labelSuggestions) {
    this.labelSuggestions.clear();
    this.labelSuggestions.addAll(labelSuggestions);
    for (Widget w : labelsPanel) {
      if (w instanceof LabelWidget) {
        LabelWidget l = (LabelWidget) w;
        l.setLabelSuggestions(this.labelSuggestions);
      }
    }
  }
View Full Code Here

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

  /**
   * Displays a new Component Label on this Widget.
   */
  public void displayLabel(final AccLabel label) {
    final LabelWidget labelWidget = new LabelWidget(label.getLabelText());
    labelWidget.setLabelSuggestions(labelSuggestions);
    labelWidget.setEditable(editingEnabled);
    labelWidget.addValueChangeHandler(new ValueChangeHandler<String>() {
      @Override
      public void onValueChange(ValueChangeEvent<String> event) {
        if (event.getValue() == null) {
          labelsPanel.remove(labelWidget);
          presenter.onRemoveLabel(label);
View Full Code Here

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

    addBlankLabel();
  }

  private void addBlankLabel() {
    final String newText = "new label";
    addLabelWidget = new LabelWidget(newText, true);
    addLabelWidget.setLabelSuggestions(labelSuggestions);
    addLabelWidget.setVisible(editingEnabled);
    addLabelWidget.addValueChangeHandler(new ValueChangeHandler<String>() {
      @Override
      public void onValueChange(ValueChangeEvent<String> event) {
View Full Code Here

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

    componentName.setReadOnly(false);
    signoffBox.setEnabled(true);
    deleteComponentImage.setVisible(true);
    description.setEnabled(true);
    for (Widget widget : labelsPanel) {
      LabelWidget label = (LabelWidget) widget;
      label.setEditable(true);
    }
    if (addLabelWidget != null) {
      addLabelWidget.setVisible(true);
    }
  }
View Full Code Here

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

  public void setLabelSuggestions(Collection<String> labelSuggestions) {
    this.labelSuggestions.clear();
    this.labelSuggestions.addAll(labelSuggestions);
    for (Widget w : labelsPanel) {
      if (w instanceof LabelWidget) {
        LabelWidget l = (LabelWidget) w;
        l.setLabelSuggestions(this.labelSuggestions);
      }
    }
  }
View Full Code Here

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

  /**
   * Displays a new Component Label on this Widget.
   */
  public void displayLabel(final AccLabel label) {
    final LabelWidget labelWidget = new LabelWidget(label.getLabelText());
    labelWidget.setLabelSuggestions(labelSuggestions);
    labelWidget.setEditable(editingEnabled);
    labelWidget.addValueChangeHandler(new ValueChangeHandler<String>() {
        @Override
        public void onValueChange(ValueChangeEvent<String> event) {
          if (event.getValue() == null) {
            labelsPanel.remove(labelWidget);
            presenter.onRemoveLabel(label);
View Full Code Here

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

    addBlankLabel();
  }

  private void addBlankLabel() {
    final String newText = "new label";
    addLabelWidget = new LabelWidget(newText, true);
    addLabelWidget.setLabelSuggestions(labelSuggestions);
    addLabelWidget.setVisible(editingEnabled);
    addLabelWidget.addValueChangeHandler(new ValueChangeHandler<String>() {
      @Override
      public void onValueChange(ValueChangeEvent<String> event) {
View Full Code Here

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

    signoffBox.setEnabled(true);
    attributeName.setReadOnly(false);
    deleteAttributeImage.setVisible(true);
    description.setEnabled(true);
    for (Widget widget : labelsPanel) {
      LabelWidget label = (LabelWidget) widget;
      label.setEditable(true);
    }
    if (addLabelWidget != null) {
      addLabelWidget.setVisible(true);
    }
  }
View Full Code Here

Examples of edu.mit.blocks.codeblockutil.LabelWidget

        if (initLabelText == null) {
            initLabelText = "";
        }
        this.blockID = blockID;
        this.labelType = labelType;
        widget = new LabelWidget(initLabelText, workspace.getEnv().getBlock(blockID).getColor().darker(), tooltipBackground) {

            private static final long serialVersionUID = 328149080424L;

            protected void fireTextChanged(String text) {
                textChanged(text);
View Full Code Here

Examples of org.netbeans.api.visual.widget.LabelWidget

            for (String id: edges) {
                ConnectionWidget cw = (ConnectionWidget) scene.findWidget(id);
                boolean isSourceIn;
                boolean isTargetIn;

                LabelWidget source = (LabelWidget) scene.findWidget(scene
                        .getEdgeSource(id));
                Rectangle rect = source.getPreferredBounds();
                Point location = source.getPreferredLocation();
                Point pa = new Point(location.x + rect.x, location.y + rect.y);
                Point pb = new Point(location.x + rect.x + rect.width,
                        location.y + rect.y + rect.height);
                isSourceIn = isInSelectedArea(pa) && isInSelectedArea(pb);

                LabelWidget target = (LabelWidget) scene.findWidget(scene
                        .getEdgeTarget(id));
                rect = target.getPreferredBounds();
                location = target.getPreferredLocation();
                pa = new Point(location.x + rect.x, location.y + rect.y);
                pb = new Point(location.x + rect.x + rect.width, location.y
                        + rect.y + rect.height);
                isTargetIn = isInSelectedArea(pa) && isInSelectedArea(pb);
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.