Package org.sgx.yuigwt.yui.anim

Examples of org.sgx.yuigwt.yui.anim.Anim


  @Override
  public void ready(final YuiContext Y) {
    final Node p = parent.appendChild("<p>This is a para graph.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..</p>");
    p.setStyle("backgroundColor", "red");    

    final Anim anim1 = Y.newAnim(AnimConfig.create().
        node(p).duration(2.3).
        to(Style.create().width("10px")));
   
    anim1.on("end", new EventCallback<AnimEvent>() {     
      @Override
      public void call(AnimEvent e) {
        Window.alert("anim ended ");
      }
    });
    Widget button1 = Y.newButton(
      ButtonConfig.create().label("start")
    ).render(parent)
    button1.on("click", new EventCallback<ButtonEvent>() {     
      @Override
      public void call(ButtonEvent e) {
        anim1.run();       
      }
    })
  }
});
}
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.anim.Anim

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.