Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.NodeEventDelegateCallback


    resultTable.render(parent);

    String sel = "td:first-of-type";

    resultTable.srcNode().all(sel).setStyles(Style.create().cursor("pointer").textDecoration("underline"));
    resultTable.srcNode().delegate("click", new NodeEventDelegateCallback() {
      @Override
      public void call(Node n, YuiEvent evt, Object arg) {
        showTest(parent, util.getTestByName(n.text()));
      }
    }, sel, null);
View Full Code Here


  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

      newNode.setStyle("backgroundColor", "pink");
       
      final Node todoList = Y.one("#todo-example ol");
      final Node newTask = Y.one("#todo");
     
      todoList.delegate("click", new NodeEventDelegateCallback() {
       
        @Override
        public void call(Node n, YuiEvent evt, Object arg) {
          n.ancestor("li").remove();
        }
View Full Code Here

      });
      vMenuParent.append(menu2);
      menu2.plug(Y.Plugin().NodeMenuNav());
     
      for(Node n : new Node[]{menu1, menu2}) {
        n. delegate("click", new NodeEventDelegateCallback() {         
          @Override
          public void call(Node n, YuiEvent evt, Object arg) {
            Window.alert("clicked node: "+n);
            evt.preventDefault();
          }
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.node.NodeEventDelegateCallback

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.