Package org.sgx.yuigwt.yui.event

Examples of org.sgx.yuigwt.yui.event.NodeEventCallback


          y = Double.parseDouble(yInput.getString("value"));
        overlay.move(x, y);
      }
    }, "#move");
     
      Y.one("#hide").on("click", new NodeEventCallback() {     
      @Override
      public void call(YuiEvent e) {
        overlay.hide();
      }
    });
     
      Y.one("#show").on("click", new NodeEventCallback() {     
      @Override
      public void call(YuiEvent e) {
        overlay.show();
      }
    });
View Full Code Here


     * @see http://yuilibrary.com/forum/viewtopic.php?f=92&t=10439&p=34110#p34110
     * */
    Node el1 = Y.one(parent.getDOMNode()).appendChild("<b>SampleEl</b>");
    //now we are sure that el2 Node has the "node-event-simulate" plugin loaded
   
    el1.on("click", new NodeEventCallback() {     
      @Override
      public void call(YuiEvent e) {
        Window.alert("simulated click. AltKey is "+e.altlKey()+" - clientX is "+e.clientX());
      }
    });
    el1.on("keydown", new NodeEventCallback() {
     
      @Override
      public void call(YuiEvent e) {
        Window.alert("keydown simulate keycode is "+e.keyCode());
      }
View Full Code Here

        public void call(Node n, YuiEvent evt, Object arg) {
          n.ancestor("li").remove();
        }
      }, "button", null);
     
      NodeEventCallback addTodo = new NodeEventCallback() {
       
        @Override
        public void call(YuiEvent e) {
          todoList.append(
                  "<li><button class=\"delete-todo\">remove</button>" +
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.event.NodeEventCallback

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.