Examples of newButton()


Examples of org.sgx.yuigwt.yuigallery.YuiGalleryContext.newButton()

    console.boundingBox().setStyles(Style.create().left("70px"));
   
    cp1 = Y.newColorPicker();
    cp1.render(parent);
   
    Y.newButton(ButtonConfig.create().
      label("get color").
      on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        console.log("color hex: "+cp1.hex());
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.YuiGalleryContext.newButton()

    Node p = Y.one(parent.getDOMNode());
    p.append("<p>Write some tags, comma separated: </p>" );
    Node input1 = p.appendChild("<input type=\"text\"></input>");
    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++) {
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.YuiGalleryContext.newButton()

      plug(Y.GalleryPlugin().TokenInput(), TokenInputPluginConfig.create().
        delimiter(".")).
      plug(Y.GalleryPlugin().AutoComplete(), AutoCompleteConfig.create().
        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

Examples of org.sgx.yuigwt.yuigallery.YuiGalleryContext.newButton()

  public void ready(YuiContext Y_) {
   
    final YuiGalleryContext Y = Y_.cast();    
    console = Y.newConsole().render().cast();
   
    Y.newButton(ButtonConfig.create().label("do deferred 1").on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        doDeferred1(parent, Y);
      }
    })).render(parent);
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.YuiGalleryContext.newButton()

      public void call(EventFacade e) {
        doDeferred1(parent, Y);
      }
    })).render(parent);
   
    Y.newButton(ButtonConfig.create().label("do deferred 2").on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        doDeferred2(parent, Y);
      }
    })).render(parent);
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.