Package org.sgx.yuigwt.yui.get

Examples of org.sgx.yuigwt.yui.get.GetCallback


    //now try to load a non existing file - catch the error using the normal callback for accessing the error
    Button b3 = Y.newButton(ButtonConfig.create().label("nonExisting1")).render(parent).cast();
    b3.on("click", new EventCallback() {     
      @Override
      public void call(EventFacade e) {
        Y.Get().css(GWT.getModuleBaseURL()+"testfiles/jsNotExists123.css", GetConfig.create(), new GetCallback() {         
          @Override
          public void call(JsArray err_, Transaction tx) {
            JsArray<GetError> err = (JsArray<GetError>)err_;
            Window.alert("error count: "+err.length()+" - first error: "+
                err.get(0).error());
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.get.GetCallback

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.