Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.Node.delegate()


  for(String moduleName : modules.keySet()) {
    Module module = modules.get(moduleName);
    list.append("<li class=\"\" ><a href=\""+module.url()+
      "\" id=\"module-"+moduleName+"\">"+moduleName+"</a></li>");
  }
  list.delegate("click", new NodeEventDelegateCallback() {   
    @Override
    public void call(Node n, YuiEvent evt, Object arg) {
      evt.preventDefault();
      console.log(n+"");
    }
View Full Code Here


 
  public UIBinderComposing(YuiContext y) {
    super(y);
    //not yui binding required : we can start working with the MainMenu widget right away
    Node n = y.one(mainMenu.getElement());
    n.delegate("click", new NodeEventDelegateCallback() {
     
      @Override
      public void call(Node n, YuiEvent evt, Object arg) {
        Window.alert("anchor clicked");
      }
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.