Examples of SuggestBox


Examples of com.google.gwt.user.client.ui.SuggestBox

  }

  void initContentOracle() {
    contentOracle = new MultiWordSuggestOracle();

    contentSuggestBox = new SuggestBox(contentOracle);
    contentSuggestBox.getElement().setId("content-box");

    // Some initial content xml strings
    contentOracle.add("");
    contentOracle.add("abcd");
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

        textBox.setName(name);
        textBox.setTitle(title);
        textBox.setTabIndex(0);

        oracle = new PrincipalSuggestOracle(type);
        suggestBox = new SuggestBox(oracle, textBox);
        suggestBox.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                setModified(true);
                String newValue = event.getValue();
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

        textBox.setName(name);
        textBox.setTitle(title);
        textBox.setTabIndex(0);

        oracle = new PrincipalSuggestOracle(type);
        suggestBox = new SuggestBox(oracle, textBox);
        suggestBox.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                setModified(true);
                String newValue = event.getValue();
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

        errorMessageLabel.addStyleName(resources.css().errorLabel());
        errorImage = new Image(resources.errorIcon());
        errorImage.setTitle(messages.error());

        enterBlueprintTable = new FlexTable();
        enterBlueprintSuggestBox = new SuggestBox(blueprintTypeSuggestOracle);
        enterBlueprintSuggestBox.addStyleName(resources.css().blueprintNameInput());
        enterBlueprintSuggestBox.getTextBox().setEnabled(false);
        enterBlueprintNameLabel = new Label(messages.enterBlueprintName() + ":");
        setButton = new Button(messages.set());
        setButton.setEnabled(false);
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

    oracle.add("Ursula");
    oracle.add("Vivienne");
    oracle.add("Waldemar");
    oracle.add("Yildirim");
    oracle.add("Zafer");
    suggestBox1 = new SuggestBox(oracle);
    suggestBox2 = new SuggestBox(oracle);
   
   
   
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    System.out.println("SearchDemo onModuleLoad Happening");
      firstNameSuggestBox = new SuggestBox(oracle1);
      lastNameSuggestBox = new SuggestBox(oracle2);

    // Add the firstNameField and sendButton to the RootPanel
    // Use RootPanel.get() to get the entire body element
    RootPanel.get("firstNameFieldContainer").add(firstNameSuggestBox);
    RootPanel.get("lastNameFieldContainer").add(lastNameSuggestBox);
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

        callback.onSuggestionsReady(request, new Response(suggestions));
      }

    };

    SuggestBox box = new SuggestBox(oracle);
    box.addEventHandler(new SuggestionHandler() {
      public void onSuggestionSelected(SuggestionEvent event) {
        AbstractIssue issue = ((IssueSuggestion) event.getSelectedSuggestion()).getIssue();
        int index = issues.indexOf(issue);
        issueList.setSelectedIndex(index);
        refreshIssue();
      }

    });
    box.setAnimationEnabled(false);
    return box;
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

        refreshIssue();
      }
    });

    // Create a suggest box to search for issues
    SuggestBox suggestBox = createIssueFinder();

    // Create a button to move to the previous issue
    Image prevButton = IMAGES.prevButton().createImage();
    prevButton.setStyleName("prevButton");
    prevButton.addClickListener(new ClickListener() {
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

    // No new methods.  Just a parameterized UiBinder.
  }

  public PlaygroundUI(MultiWordSuggestOracle sourceSuggestions,
      MultiWordSuggestOracle policySuggestions) {
    addressField = new SuggestBox(sourceSuggestions);
    policyAddressField = new SuggestBox(policySuggestions);

    initWidget(UI_BINDER.createAndBindUi(this));
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.SuggestBox

    }
  }

  private void initPolicyPanel() {
    policyExamples = new MultiWordSuggestOracle();
    playgroundUI.policyAddressField = new SuggestBox(policyExamples);
    playgroundUI.policyAddressField.getTextBox().addFocusHandler(new FocusHandler() {
      public void onFocus(FocusEvent event) {
        playgroundUI.policyAddressField.showSuggestionList();
      }
    });
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.