hortence

JsonTest2 WidgetChat.js 3

Jun 15th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. qx.Class.define("jsontest2.WidgetChat",
  2. {
  3.     extend: qx.ui.core.Widget,
  4.     include: [qx.ui.form.MModelProperty],
  5.  
  6.     construct: function () {
  7.         this.base(arguments, "jsontest2");
  8.  
  9.         this.debug("Create layout")
  10.         //create layout
  11.         var layoutWidget = new qx.ui.layout.Basic();
  12.  
  13.         this.debug("Create a container");
  14.         //create a container
  15.         var widgetContain = new qx.ui.container.Composite(layoutWidget);
  16.  
  17.         this.debug("create a button");
  18.         //create a button
  19.         var btn = new qx.ui.form.Button("widget");
  20.  
  21.         this.debug("add the button to container");
  22.         //add the button to container
  23.         widgetContain.add(btn);
  24.  
  25.         this.debug("add the container")
  26.         //add the container
  27.         this._add(widgetContain);
  28.  
  29.         this.debug("End Widget");
  30.  
  31.     }
  32. });
Advertisement
Add Comment
Please, Sign In to add comment