Package com.google.testing.testify.risk.frontend.client.view.widgets

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


  void onUpdateFilterClicked(ClickEvent event) {
    ArrayList<FilterOption> options = Lists.newArrayList();
    // Iterate through each widget on the Filter Options Vertical Panel, as each of those will be
    // a parameter to the filter.
    for (Widget widget : filterOptions) {
      ConstrainedParameterWidget param = (ConstrainedParameterWidget) widget;
      String type = param.getParameterKey();
      String value = param.getParameterValue();
      FilterOption option = new FilterOption(type, value);
      options.add(option);
    }
    String conjunction = anyOrAllBox.getValue(anyOrAllBox.getSelectedIndex());
    attribute = stringToId(attributeBox.getValue(attributeBox.getSelectedIndex()));
View Full Code Here


    capability = stringToId(capabilityBox.getValue(capabilityBox.getSelectedIndex()));
    presenter.onUpdate(options, conjunction, attribute, component, capability);
  }

  private ConstrainedParameterWidget createRequestWidget(String name, String value) {
    final ConstrainedParameterWidget param = new ConstrainedParameterWidget(
        filterOptionChoices, name, value);

    param.addChangeHandler(new ChangeHandler() {
        @Override
        public void onChange(ChangeEvent arg0) {
          filterOptions.remove(param);
        }
      });
View Full Code Here

  }

  private DataRequestParameterWidget createRequestWidget(String name, String value) {
    final DataRequestParameterWidget param;
    if (parameterKeyConstraint != null) {
      param = new ConstrainedParameterWidget(parameterKeyConstraint, name, value);
    } else {
      param = new CustomParameterWidget(name, value);
    }
    param.addChangeHandler(new ChangeHandler() {
        @Override
View Full Code Here

TOP

Related Classes of com.google.testing.testify.risk.frontend.client.view.widgets.ConstrainedParameterWidget

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.