Package org.sgx.yuigwt.yuigallery.tokenInput

Examples of org.sgx.yuigwt.yuigallery.tokenInput.TokenInputPlugin.tokens()


    input1.plug(Y.GalleryPlugin().TokenInput(), TokenInputPluginConfig.create().removeButton(true));
    final TokenInputPlugin tiPlugin = input1.getPlugin("tokenInput").cast();
    Y.newButton(ButtonConfig.create().label("Accept").render(parent).on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        String[] selection = JsUtil.toJavaStringArray(tiPlugin.tokens());
        String s = "selection is : ";
        for (int i = 0; i < selection.length; i++) {
          s+=selection[i];
        }
        Window.alert(s)
View Full Code Here


        resultFilters("charMatch").resultHighlighter("charMatch").source(tags));
    final TokenInputPlugin tiPlugin2 = input2.getPlugin("tokenInput").cast();
    Y.newButton(ButtonConfig.create().label("Set defaults").render(parent).on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        tiPlugin2.tokens("adan", "eve", "nietzsche");
      }     
    }));
  }
});
}
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.