Hi,

you can't access Lo, because it is only in the local scope from the main 
method.

You have to define it as public member to access it like you want:

x.Class.define("demobrowser.demo.root.Application",
{
   extend : qx.application.Standalone,

   members :
   {
     Lo : null,

     main: function()
     {
       this.base(arguments);

       var w1 = new demobrowser.demo.root.Desktop(this);

        this.Lo = new qx.ui.basic.Label("Logout");

       this.getRoot().add(Lo, {top:0,left:0});
       this.getRoot().add(w1, {top:50,left:60});
     }
   }
});

Cheers,
Chris



Am 17.11.2011 00:23, schrieb gfhussain:
>
> qx.Class.define("demobrowser.demo.root.Application",
> {
>    extend : qx.application.Standalone,
>
>    members :
>    {
>      main: function()
>      {
>        this.base(arguments);
>
>        var w1 = new demobrowser.demo.root.Desktop(this);
>
>         var Lo = new qx.ui.basic.Label("Logout");
>
>        this.getRoot().add(Lo, {top:0,left:0});
>        this.getRoot().add(w1, {top:50,left:60});
>      }
>    }
> });
>
>
> qx.Class.define("demobrowser.demo.root.Desktop",
> {
>    extend : qx.ui.container.Composite,
>    construct: function (gg) {
>          this.base(arguments);
>         this.__gg=gg;
>          var layout = new qx.ui.layout.HBox();
>           this.setLayout(layout);
>
>
>           var button1 = new qx.ui.form.Button("First Button");
>
>
>           this.add(button1);
>
>
>           button1.addListener("execute", function(e) {
>
>             this.__gg.Lo.setValue("ali");
>            });
>      },
>    members :
>    {
>
>    }
> });
>
>


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to