Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- qx.Class.define("jsontest2.WidgetChat",
- {
- extend: qx.ui.core.Widget,
- include: [qx.ui.form.MModelProperty],
- construct: function () {
- this.base(arguments, "jsontest2");
- this.debug("Create layout")
- //create layout
- var layoutWidget = new qx.ui.layout.Basic();
- this.debug("Create a container");
- //create a container
- var widgetContain = new qx.ui.container.Composite(layoutWidget);
- this.debug("create a button");
- //create a button
- var btn = new qx.ui.form.Button("widget");
- this.debug("add the button to container");
- //add the button to container
- widgetContain.add(btn);
- this.debug("add the container")
- //add the container
- this._add(widgetContain);
- this.debug("End Widget");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment