On Fri, Mar 26, 2010 at 11:26, Steve Jobs <[email protected]> wrote:

> Thank you Alex for quick and clear response.
> Can we get it through some protected method so that I may use it through a
> subclass?
>
> Steve
>
>
> var myObj = new qx.ui.form.TextField();
>> myObj.addListener("focus" focusTextField);
>>
>> // ...
>>
>> focusTextField : function() {
>>  alert("I am here");
>> });
>
>
>
If focusTextField is a "member" function, then it is accessible to the
subclass.

members :
{
  focusTextField : function()
  {
    alert("I am here');
  }
}

The subclass could then access this.focusTextField.

You could also (nearly identically) create a function and assign a reference
to it to a member variable:

this.myObjListener = function() { alert("I am here"); };
myObj.addListener("focus", this.myObjListener);

Derrell
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to