Examples of MultiWordSuggestOracle


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

    contentBox = new TextArea();
    contentBox.getElement().setId("content-box");
  }

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

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

    // Some initial content xml strings
View Full Code Here

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

    private MultiWordSuggestOracle oracle;


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

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

    }

    public ClusterConnectionForm(FormToolStrip.FormCallback<ClusterConnection> callback, boolean create) {
        isCreate = create;
        if(!isCreate)this.callback = callback;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);

    }
View Full Code Here

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

        this.roles = roles;
    }

    @Override
    public Widget asWidget() {
        MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
        for (Principal principal : principals.get(type)) {
            oracle.add(principal.getName());
        }

        final Form<RoleAssignment> form = new Form<RoleAssignment>(RoleAssignment.class);
        String title = type == GROUP ? Console.CONSTANTS.common_label_group() : Console.CONSTANTS.common_label_user();
        final PrincipalFormItem principalItem = new PrincipalFormItem(type, "principal", title);
View Full Code Here

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

        this.beanFactory = beanFactory;
    }

    @Override
    public Widget asWidget() {
        MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
        List<Principal> byType = principals.get(type);
        if (byType != null) {
            for (Principal principal : byType) {
                oracle.add(principal.getName());
            }
        }

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("window-content");
View Full Code Here

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

  private boolean timerRunning;
  private final Set<Observer<Dto>> observers = new HashSet<Observer<Dto>>();
  private static final ReadServiceAsync readService = GWT.create(ReadService.class);
 
  public RelateWidget(final String kind, final long id) {
    super(new MultiWordSuggestOracle());
    this.kind = kind;
    addHandlers();
   
    if (0 != id) {
      // an id of 0 indicates that nothing has been selected yet. if something has been
View Full Code Here

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

  //        LoadIndicator.get().endLoading();

          if (0 == result.getResults().length) {
            indicateNoResults();
          } else {
            final MultiWordSuggestOracle o = (MultiWordSuggestOracle) getSuggestOracle();
            o.clear();

            for (final Dto a : result.getResults()) {
              o.add(a.getQuicksearch());
            }
          }
        }
      }, new ServerCallback<ListQueryResult>() {
        @Override
View Full Code Here

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

      }, 60 * 1000, kind, query, 0, 20);
    }
  }
 
  private void indicateNoResults() {
    MultiWordSuggestOracle o = (MultiWordSuggestOracle) getSuggestOracle();

    o.clear();
    o.add("No Results");

    // TODO indicate that no results have been returned, set background
    // color to red or something like that..
  }
View Full Code Here

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

    caesarTextBox.setText("Encrypt me!");
   
   
   
   
    oracle = new MultiWordSuggestOracle();
    oracle.add("Anton");
    oracle.add("Berta");
    oracle.add("Claudia");
    oracle.add("Dimitri");
    oracle.add("Erkan");
View Full Code Here

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

    /**
     * Constructor
     */
    public Impl() {
      super(new MultiWordSuggestOracle());
      addStyleName(Styles.TBOX);
    }
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.