Package org.sgx.yuigwt.yui.console

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


        }
      }
    });
    //render and log something.
    console1.render();
    console1.log("using Console.log()", "info", "myapp");  
   
    //now install DD and resize plugins for the console
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{".yui3-console-hd"}));
    console1.plug(Y.Plugin().Resize());
    console1.log("drag the title for move and also resizable. ");
View Full Code Here


    console1.log("using Console.log()", "info", "myapp");  
   
    //now install DD and resize plugins for the console
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{".yui3-console-hd"}));
    console1.plug(Y.Plugin().Resize());
    console1.log("drag the title for move and also resizable. ");
  }
 
});
}
View Full Code Here

ic1.render(parent);

ic1.on(ImageCropper.EVENT_CROPEND, new EventCallback<ImageCropperEvent>() {
  @Override
  public void call(ImageCropperEvent e) {
    console.log(e.left()+", "+e.top()+", "+e.width()+", "+e.height());
  }
});
  }
});
}
View Full Code Here

   
    ITSASelectlist selectlist = Y.newITSASelectlist(ITSASelectlistConfig.create().items(months));
    selectlist.on(ITSASelectlist.EVENT_SELECTCHANGE, new EventCallback<ITSASelectlistEvent>() {
      @Override
      public void call(ITSASelectlistEvent e) {
        console.log("selected item index "+e.index()+" - value: "+e.value());
      }
    });
    selectlist.render(parent);
   
   
View Full Code Here

      .defaultButtonText("")
    );
    selList2.on(ITSASelectlist.EVENT_SELECTCHANGE, new EventCallback<ITSASelectlistEvent>() {
      @Override
      public void call(ITSASelectlistEvent e) {
        console.log("selected color: "+e.value());
      }
    });
    selList2.render(parent.appendChild("<div id=\"divcolorpicker\"></div>"));
   
    StyleSheet sty = Y.newStyleSheet();
View Full Code Here

    YQL yql1 = Y.newYQL("desc answers.getquestion", new YQLCallback() {     
      @Override
      public void call(YQLResult r) {   
       
        if(r.error()!=null) {
          console.log("YQL ERROR:"+r.error().description());
          return ;
        }       
        DescResult desc1 = r.query().results().cast();
       
        TableDesc t = desc1.table();
View Full Code Here

  GalleryUtil util = gallery.util;
  Map<String, Module> modules = util.getModulesByName();
  parent.setStyle("columnCount", "3");
  parent.setStyle("columnGap", "20px");
  Node list = parent.appendChild("<ul></ul>");
  console.log("ABCModuleListing module count: "+modules.keySet().size());
  for(String moduleName : modules.keySet()) {
    Module module = modules.get(moduleName);
    list.append("<li class=\"\" ><a href=\""+module.url()+
      "\" id=\"module-"+moduleName+"\">"+moduleName+"</a></li>");
  }
View Full Code Here

  }
  list.delegate("click", new NodeEventDelegateCallback() {   
    @Override
    public void call(Node n, YuiEvent evt, Object arg) {
      evt.preventDefault();
      console.log(n+"");
    }
  }, "a", null);
}
}
View Full Code Here

    Drag dd = Y.newDDDrag(DragConfig.create().node(node1));
   
    //now a console dragable only at its title - using drag handle
    final Console console1 = Y.newConsole(ConsoleConfig.create()).render().cast();
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{"h4"}));
    console1.log("this console is only draggable by its title.");
  }
});
}

}
View Full Code Here

      editor.plug(Y.Plugin().EditorBidi());
           
      editor.on(EditorBase.EVENT_NODECHANGE, new EventCallback<EditorBaseEvent>() {
      @Override
      public void call(EditorBaseEvent e) {
        console1.log("node changed: "+e.changedType());
      }     
    });      
     
      editor.on("dom:keydown", new EventCallback<EditorBaseEvent>() {
      @Override
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.