Package org.sgx.yuigwt.yui.console

Examples of org.sgx.yuigwt.yui.console.Console.log()


    });      
     
      editor.on("dom:keydown", new EventCallback<EditorBaseEvent>() {
      @Override
      public void call(EditorBaseEvent e) {
        console1.log("dom:keydown: target: "+e.frameTarget().get("id")+
          " - keycode: "+e.frameEvent().keyCode());
      }     
    });      
     
      editor.render(parent);
View Full Code Here


    );
    final Console console = Y.newConsole().render().cast();
    dial.on("valueChange", new EventCallback<WidgetEvent>() {
      @Override
      public void call(WidgetEvent e) {
        console.log("valuechange : "+e.newValInt());
      }
    });
    dial.render(parent);
  }
});
View Full Code Here

      @Override
      public void call(YQLResult r) {
        JsObject o = r.query().results().objGetObj("json"); //type, count, modules, }
        JsArray<JsObject> modules = o.objGetObj("modules").cast();
        JsObject module0 = modules.get(0);
        console.log("first module title is "+module0.objGetString("title"));         
      }
    };
    YQLParams yqlParams2 = YQLParams.create().env("http://datatables.org/alltables.env");
    yqlParams2.format("json")
    YQL yql2 = Y.newYQL(query2, yqlCallback2, yqlParams2);
View Full Code Here

    /* handle an yql request that gives error */   
    YQL yql3 = Y.newYQL("select * from weather.nonexist123 where nonexists=90210", new YQLCallback() {     
      @Override
      public void call(YQLResult r) {
        if(r.error()!=null)
          console.log("ERROR (it is ok..):"+r.error().description());
      }
    });
  }
});
}
View Full Code Here

      srcNode(sv1Node).height("100px"));
    sv1.render();
    sv1.on(ScrollView.EVENT_SCROLLYCHANGE, new EventCallback<AttributeEvent>() {
      @Override
      public void call(AttributeEvent e) {
        console1.log("scrollX changed: "+e.newValDouble());
      }
    });
   
    Y.newButton(
      ButtonConfig.create().label("up").
View Full Code Here

    fm.on(NodeFocusManager.EVENT_FOCUSEDCHANGE, new EventCallback<AttributeEvent>() {

      @Override
      public void call(AttributeEvent e) {
        if(!e.newValBoolean()) {
          console1.log("parent has lost focus");
        }
        else {
          console1.log("parent has gain focus");
        }
      }
View Full Code Here

      public void call(AttributeEvent e) {
        if(!e.newValBoolean()) {
          console1.log("parent has lost focus");
        }
        else {
          console1.log("parent has gain focus");
        }
      }
    });
  }
});
View Full Code Here

//using "normal" yuigwt infrastructure
button1.on(new String[]{"click", "mouseover"}, new EventCallback<ButtonEvent>() {
  @Override
  public void call(ButtonEvent e) {
    console.log("1 "+e.type()+" at X="+e.domEvent().clientX());
  }
});

Widget button2 = Y.newButton(
  ButtonConfig.create().label("button2")
View Full Code Here

//using util.Callback generic callback definition
button2.on("click", new Callback() {     
  @Override
  public void call(JsArrayMixed args) {
    ButtonEvent e = args.getObject(0).cast();
    console.log("2 clicked at X="+e.domEvent().clientX());
  }
});
   
Widget button3 = Y.newButton(
  ButtonConfig.create().label("button3")
View Full Code Here

      ScrollViewPaginatorConfig.create().selector("li"));
   
    sv1.on(ScrollViewPaginator.EVENT_INDEXCHANGE, new EventCallback<AttributeEvent>() {
      @Override
      public void call(AttributeEvent e) {
        console1.log("index changed changed: "+e.newValInt());
      }
    });
    pages = sv1.pages();
   
    Y.newButton(
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.