Examples of ByTagsSearcher


Examples of org.sgx.yuigwt.galleryexplorer.client.search.ByTagsSearcher

      resultTable.render();
    }
  })).render(byName);
 
  //search by tags
  final ByTagsSearcher byTagsSearcher = new ByTagsSearcher(util, "");
  final Node byTagsInput = byTag.appendChild("<input type=\"text\" value=\"\"></input>");
 
  AutoComplete acTags = Y.newAutoComplete(AutoCompleteConfig.create().
    resultHighlighter("phraseMatch").
    inputNode(byTagsInput).
    source(byTagsSearcher.autocompleteData()).
    render(true)
  );  
  Y.newButton(ButtonConfig.create().label("Search").
    on("click", new EventCallback<ButtonEvent>() {
    @Override
    public void call(ButtonEvent e) {
      String keyword = byTagsInput.get("value");
      byTagsSearcher.setTag(keyword);
      JsArray<Module> results = SearchUtil.search(util.getModules(), byTagsSearcher);
      console.log("search by tag keyword: "+keyword+", results: "+results.length());
      resultTable.data(results);
      resultTable.render();
    }
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.