Examples of OptionElement


Examples of com.google.gwt.dom.client.OptionElement

    OptionItem item = (OptionItem) selectItems.get(index);

    item.setSelected(false);

    // select option in original element
    OptionElement option = selectElement.getOptions().getItem(item.getOptionsIndex());
    option.setSelected(false);

    $("#" + containerId + "_o_" + index).removeClass(css.resultSelected()).addClass(
        css.activeResult()).show();

    resultClearHighlight();
    winnowResults();

    fireEvent(new ChosenChangeEvent(option.getValue(), false, this));

    searchFieldScale();
  }
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

    resultsShowing = false;

  }

  private void resultsReset(Event e) {
    OptionElement firstoption = selectElement.getOptions().getItem(0);
    if (firstoption != null) {
      firstoption.setSelected(true);
    }

    selectedItem.find("span").text(defaultText);
    if (!isMultiple) {
      selectedItem.addClass(css.chznDefault());
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

    OptionItem item = (OptionItem) selectItems.get(index);

    item.setSelected(false);

    // select option in original element
    OptionElement option = selectElement.getOptions().getItem(item.getOptionsIndex());
    option.setSelected(false);

    $("#" + containerId + "_o_" + index).removeClass(css.resultSelected()).addClass(
        css.activeResult()).show();

    resultClearHighlight();
    winnowResults();

    fireEvent(new ChosenChangeEvent(option.getValue(), false, this));

    searchFieldScale();
  }
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

    resultsShowing = false;

  }

  private void resultsReset(Event e) {
    OptionElement firstoption = selectElement.getOptions().getItem(0);
    if (firstoption != null) {
      firstoption.setSelected(true);
    }

    selectedItem.find("span").text(defaultText);
    if (!isMultiple) {
      selectedItem.addClass(css.chznDefault());
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

            if (item.getValue().equals(value)) {
                item.setSelected(false);

                // select option in original element
                OptionElement option = selectElement.getOptions().getItem(item.getOptionsIndex());
                if (option != null) {
                    option.setSelected(false);
                }

                $("#" + containerId + "_o_" + index).removeClass(css.resultSelected()).addClass(
                        css.activeResult()).show();
            }
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

            high.addClass(css.resultSelected());

            int position = Integer.parseInt(highId.substring(highId.lastIndexOf("_") + 1));
            OptionItem item = (OptionItem) selectItems.get(position);
            item.setSelected(true);
            OptionElement option = selectElement.getOptions().getItem(item.getOptionsIndex());
            if (option != null) {
                option.setSelected(true);
            }

            if (isMultiple) {
                choiceBuild(item);
            } else {
View Full Code Here

Examples of com.google.gwt.dom.client.OptionElement

        dropdown.css("top", VERTICAL_OFFSET + "px");
        resultsShowing = false;
    }

    private void resultsReset(Event e) {
        OptionElement firstoption = selectElement.getOptions().getItem(0);
        selectedValues = new ArrayList<String>();

        if (firstoption != null) {
            firstoption.setSelected(true);
            selectedValues.add(firstoption.getValue());
        }

        selectedItem.find("span").text(defaultText);
        if (!isMultiple) {
            selectedItem.addClass(css.chznDefault());
View Full Code Here

Examples of elemental.html.OptionElement

        Node duplicate = existing.get(module.getModule());
        if (duplicate != null) {
          // TODO check revision # and take freshest
          duplicate.removeFromParent();
        }
        OptionElement opt = createOption(module, i == 0);
        list.appendChild(opt);
      }
    }
    if (best == null)
     best = modules.get(0);
View Full Code Here

Examples of elemental.html.OptionElement

    classpath.setClasspath(best.getSources(), best.getDependencies());
  }

  protected OptionElement createOption(GwtRecompile module, boolean selected) {
    modules.put(module.getModule(), module);
    OptionElement option = Browser.getDocument().createOptionElement();
    option.setDefaultSelected(selected);
    option.setAttribute("name", module.getModule());
    option.setText(module.getModule());
    option.setValue(module.getModule());
    return option;
  }
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.