Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.MultiWordSuggestOracle$WordBounds


    private MultiWordSuggestOracle oracle;


    public LocalSocketForm(FormToolStrip.FormCallback<LocalSocketBinding> callback) {
        this.callback = callback;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
    }
View Full Code Here


    }

    public LocalSocketForm(FormToolStrip.FormCallback<LocalSocketBinding> callback, boolean create) {
        this.callback = callback;
        isCreate = create;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);

    }
View Full Code Here

    private MultiWordSuggestOracle oracle;


    public DiscoveryGroupForm(FormToolStrip.FormCallback<DiscoveryGroup> callback) {
        this.callback = callback;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
    }
View Full Code Here

    }

    public DiscoveryGroupForm(FormToolStrip.FormCallback<DiscoveryGroup> callback, boolean create) {
        this.callback = callback;
        isCreate = create;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);

    }
View Full Code Here

        private MultiWordSuggestOracle oracle;

        @Override
        public void create(final PTInstruction create, final UIService uiService) {
            this.objectID = create.getObjectID();
            this.oracle = new MultiWordSuggestOracle();

            PTSuggestBox.oracleByID.put(objectID, oracle);
        }
View Full Code Here

  }

  /** Private constructor, use {@link #newSuggestBox} instead. */
  private RemoteOracle(final String suggest_type) {
    type = suggest_type;
    MultiWordSuggestOracle cache = caches.get(type);
    QueriesSeen queries_seen;
    if (cache == null) {
      cache = new MultiWordSuggestOracle(".");
      queries_seen = new QueriesSeen();
      caches.put(type, cache);
      all_queries_seen.put(type, queries_seen);
    } else {
      queries_seen = all_queries_seen.get(type);
View Full Code Here

    /**
     * Constructor for {@link Typeahead}. Creates a {@link MultiWordSuggestOracle} to use with this
     */
    public Typeahead() {
        this(new MultiWordSuggestOracle());
    }
View Full Code Here

  private boolean status;

  @SuppressWarnings("unchecked")
  public SubjectsSuggestWidget(List<String> subjects) {

    oracle = new MultiWordSuggestOracle();
    suggestBox = new SuggestBox(oracle);
    suggestBox.setWidth("15px");
    DOM.setStyleAttribute(suggestBox.getElement(), "border", "0");
    DOM.setStyleAttribute(suggestBox.getElement(), "outline", "0");
    this.oracle.addAll(subjects);
View Full Code Here

  private Runnable afterSaveAction;

  @PostConstruct
  private void setupSuggestions() {
    MultiWordSuggestOracle iso = (MultiWordSuggestOracle) name.getSuggestOracle();
    for (Item i : em.createNamedQuery("allItemsByName", Item.class).getResultList()) {
      iso.add(i.getName());
    }
   
    MultiWordSuggestOracle dso = (MultiWordSuggestOracle) department.getSuggestOracle();
    for (Department d : em.createNamedQuery("allDepartments", Department.class).getResultList()) {
      dso.add(d.getName());
    }
  }
View Full Code Here

    private Label errorMessage;

    EnumEditorViewImpl(final List<String> enumValues, final List<String> enumDescriptions) {
      // Sets up a SuggestOracle that, when the textbox has focus, displays the
      // valid enum values and their descriptions.
      MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
      List<Suggestion> suggestions = Lists.newArrayList();
      for (int i = 0; i < enumValues.size(); i++) {
        suggestions.add(new EnumSuggestion(
            enumValues.get(i), enumDescriptions == null ? "" : enumDescriptions.get(i)));
      }
      oracle.setDefaultSuggestions(suggestions);
      this.suggestBox = new SuggestBox(oracle);
      suggestBox.getTextBox().addFocusHandler(new FocusHandler() {
        @Override
        public void onFocus(FocusEvent event) {
          suggestBox.showSuggestionList();
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.MultiWordSuggestOracle$WordBounds

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.