Package org.sgx.yuigwt.yui.console

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


YUI.Use(new String[]{"history", "tabview", "console"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) {
   
    final Console console = Y.newConsole(ConsoleConfig.create() );
    console.render();
   
    final HistoryBase history = Y.newHistoryHash();
   
    final TabView tb = Y.newTabView(TabViewConfig.create(new TabConfig[]{
      TabConfig.create().label("tab1").content("<p>11111111111 foo content</p>"),
View Full Code Here


      public void ready(final YuiContext Y) {
        ta = parent.appendChild("<textarea></textarea>");
        ta.setStyle("width", "100%");

        final Console console = Y.newConsole(ConsoleConfig.create());
        console.render();

        AsyncQueueItem aqItem = AsyncQueueItem.create().id("aq1").iterations(5).timeout(150).fn(new SimpleCallback() {
          @Override
          public void call() {
            ta.set("text", ta.get("text") + " - 1");
View Full Code Here

  private EventHandle handle1;

  @Override
  public void ready(final YuiContext Y) {
    final Console console = Y.newConsole();
    console.render();
    Widget button1 = Y.newButton(
      ButtonConfig.create().label("a simple button 123")
    ).render(parent)
    //register a click listener that will unregister itself after the first event
    handle1 = button1.on("click", new EventCallback<ButtonEvent>() {     
View Full Code Here

   
@Override
public void ready(final YuiContext Y) {
 
  final Console console1 = Y.newConsole(ConsoleConfig.create());
  console1.render();
 
  String uri1 = GWT.getModuleBaseURL()+"testfiles/json1.json",
    uri2 = GWT.getModuleBaseURL()+"testfiles/page2.html",
    nonExistentUri = GWT.getModuleBaseURL()+"testfiles/notexistent.json";
 
View Full Code Here

          e.preventDefault();
        }
      }
    });
    //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());
View Full Code Here

  public void ready(YuiContext Y_) {
    //cast to YuiGalleryContext for using the yui gallery java api.
    final YuiGalleryContext Y = Y_.cast();
   
final Console console = Y.newConsole(ConsoleConfig.create());
console.render();

String src1 = "http://cabopolonio.com/ovejasenelcabo.jpg";
ImageCropper ic1 = Y.newImageCropper(ImageCropperConfig.create().source(src1).
  width("743px").height("517px"));
ic1.render(parent);
View Full Code Here

   
    //cast to YuiGalleryContext for using the yui gallery java api.
    final YuiGalleryContext Y = Y_.cast();
   
    final Console console = Y.newConsole();
    console.render();
   
    String[] months = new String[]{
      "Januar", "Februar", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
    };
   
View Full Code Here

public void test(final Node parent) {
YUI.Use(new String[]{"console", "editor"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) {
    final Console console1 = Y.newConsole(ConsoleConfig.create().width("50%"));
    console1.render();
   
    EditorBase editor = Y.newEditorBase(EditorBaseConfig.create().
      content("<strong class=\"foo\">This is <em>a test</em></strong>. Please edit me. <strong>This is <em>a test</em></strong>")
    );
   
View Full Code Here

YUI.Use(new String[]{"scrollview-base", "button", "console"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) {

    final Console console1 = Y.newConsole(ConsoleConfig.create());
    console1.render();
   
    Node sv1Node = parent.appendChild("<div id=\"scrollview1\"></div>");    
   
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < 100; i++) {
View Full Code Here

YUI.Use(new String[]{"button", "node-focusmanager", "console"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) {

    final Console console1 = Y.newConsole(ConsoleConfig.create());
    console1.render();
   
    Widget button1 = Y.newButton(
      ButtonConfig.create().label("a simple button")
    ).render(parent)
   
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.