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

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


    private MultiWordSuggestOracle oracle;

    public DefaultBridgeForm(FormToolStrip.FormCallback<Bridge> callback) {
        this.callback = callback;
        form.setNumColumns(2);
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
    }
View Full Code Here


    public DefaultBridgeForm(FormToolStrip.FormCallback<Bridge> callback, boolean provideTools) {
        this.callback = callback;
        this.provideTools = provideTools;
        form.setNumColumns(2);
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
    }
View Full Code Here

    @Override
    public Widget asWidget() {

        // To have something to play with...
        MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
        oracle.add("stuartwdouglas");
        oracle.add("kabir");
        oracle.add("dmlloyd");
        oracle.add("jaikiran");
        oracle.add("emuckenhuber");
        oracle.add("tdiesler");
        oracle.add("darranl");
        oracle.add("ctomc");
        oracle.add("baileyje");
        oracle.add("n1hility");
        oracle.add("wolfc");
        oracle.add("scottmarlow");
        oracle.add("jamezp");
        oracle.add("pferraro");
        oracle.add("jmesnil");
        oracle.add("jfclere");
        oracle.add("maeste");
        oracle.add("rachmatowicz");
        oracle.add("pgier");
        oracle.add("rmaucher");
        oracle.add("OndraZizka");
        oracle.add("rhusar");
        oracle.add("asoldano");
        oracle.add("ssilvert");
        oracle.add("ropalka");
        oracle.add("ochaloup");
        oracle.add("anilsaldhana");
        oracle.add("aloubyansky");
        oracle.add("heiko-braun");
        oracle.add("sguilhen");
        oracle.add("dpospisil");
        oracle.add("mmoyses");
        oracle.add("emmartins");
        oracle.add("kwart");
        oracle.add("vratsel");
        oracle.add("maasvdberg");
        oracle.add("paulrobinson");
        oracle.add("jhjaggars");
        oracle.add("alesj");
        oracle.add("jesperpedersen");
        oracle.add("ALRubinger");
        oracle.add("pskopek");
        oracle.add("bosschaert");
        oracle.add("wfink");
        oracle.add("starksm64");
        oracle.add("rsvoboda");
        oracle.add("andytaylor");
        oracle.add("aslakknutsen");
        oracle.add("jharting");
        oracle.add("baranowb");
        oracle.add("Mogztter");
        oracle.add("smcgowan");
        oracle.add("istudens");
        oracle.add("maerqiang");
        oracle.add("tristantarrant");
        oracle.add("fharms");
        oracle.add("dosoudil");
        oracle.add("sfcoy");
        oracle.add("pjanouse");
        oracle.add("madhumita");
        oracle.add("jsight");
        oracle.add("jeffzhang");
        oracle.add("soul2zimate");
        oracle.add("marschall");
        oracle.add("dobozysaurus");
        oracle.add("doctau");
        oracle.add("tomjenkinson");
        oracle.add("KurtStam");
        oracle.add("pkremens");
        oracle.add("ecki");
        oracle.add("stliu");
        oracle.add("mbogoevici");
        oracle.add("hpehl");
        oracle.add("miclark");
        oracle.add("jmartisk");
        oracle.add("mmatloka");
        oracle.add("chengfang");
        oracle.add("gunnarmorling");
        oracle.add("BrentDouglas");
        oracle.add("bobmcwhirter");
        oracle.add("galderz");
        oracle.add("clebertsuconic");
        oracle.add("okulikov");
        oracle.add("spolti");
        oracle.add("adinn");
        oracle.add("metlos");
        oracle.add("btison");
        oracle.add("motaboy");
        oracle.add("stalep");
        oracle.add("jbertram");
        oracle.add("patriot1burke");
        oracle.add("navssurtani");
        oracle.add("rreimann");
        oracle.add("goldmann");
        oracle.add("matnil");
        oracle.add("crimson11");
        oracle.add("mkouba");
        oracle.add("ehsavoie");
        oracle.add("jicken");

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("window-content");

        final Form<Principal> form = new Form<Principal>(Principal.class);
View Full Code Here


        TextItem name = new TextItem("name", "Name");
        socketBinding = new SuggestBoxItem("socketBinding", "Socket Binding");

        oracle = new MultiWordSuggestOracle();
        oracle.addAll(Collections.EMPTY_LIST);
        socketBinding.setOracle(oracle);

        ComboBoxItem protocol = new ComboBoxItem("protocol", "Protocol");
        ComboBoxItem scheme = new ComboBoxItem("scheme", "Scheme");
View Full Code Here

   *
   * @return a {@link SuggestOracle}
   */
  private SuggestOracle getSuggestOracle() {
    if (oracle == null) {
      oracle = new MultiWordSuggestOracle();
      for (char a = 'a'; a <= 'z'; a++) {
        for (char b = 'a'; b <= 'm'; b++) {
          for (char c = 'a'; c <= 'd'; c++) {
            oracle.add("" + a + b + c);
          }
View Full Code Here

  SuggestBox createSuggestBox(final String suggestBoxName, Panel p) {

    List<String> femaleNames = Arrays.asList(new String[] {
        "Jamie", "Jill", "Jackie", "Susan", "Helen", "Emily", "Karen",
        "Abigail", "Kaitlyn", "Laura", "Joanna", "Tasha"});
    MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
    oracle.addAll(femaleNames);

    final SuggestBox b = new SuggestBox(oracle);
    b.setTitle(suggestBoxName);
    p.add(b);
    final CheckBox selectsFirst = new CheckBox("Selects first suggestion");
View Full Code Here

    private MultiWordSuggestOracle oracle;


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

    }

    public DivertForm(FormToolStrip.FormCallback<Divert> callback, boolean create) {
        this.callback = callback;
        isCreate = create;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
    }
View Full Code Here

            }
            storeBinder.setModel(found, InitialState.FROM_MODEL);
        }

        departmentList.setItems(storeBinder.getModel().getDepartments());
        MultiWordSuggestOracle dso = (MultiWordSuggestOracle) addDepartment.getSuggestOracle();
        for (Department d : em.createNamedQuery("allDepartments", Department.class).getResultList()) {
            dso.add(d.getName());
        }
        addDepartment.getTextBox().addKeyPressHandler(new KeyPressHandler() {
            @Override
            public void onKeyPress(KeyPressEvent event) {
                if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
View Full Code Here

    private MultiWordSuggestOracle oracle;


    public ConnectorForm(FormToolStrip.FormCallback<Connector> callback, ConnectorType type) {
        this.callback = callback;
        oracle = new MultiWordSuggestOracle();
        oracle.setDefaultSuggestionsFromText(Collections.EMPTY_LIST);
        this.type = type;
    }
View Full Code Here

TOP

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

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.