yes it works, you are wonderfull. thank you
----- Original Message ----
From: Petr Kobalíček <[EMAIL PROTECTED]>
To: qooxdoo Development <[email protected]>
Sent: Sunday, July 20, 2008 8:43:54 AM
Subject: Re: [qooxdoo-devel] Question About accessing object
Hi jhonny,
I don't know if I help you, but try this:
_onPilihKat : function(e)
{
var button = e.getTarget();
}
There are also getCurrentTarget() and getOriginalTarget() methods but
I know nothing about those;-)
Best regards
Petr
2008/7/20 jhonny thio <[EMAIL PROTECTED]>:
> Hi, i have one question
>
> This is my code :
>
> label = new qx.ui.toolbar.Button("Test");
> this.add(label);
> label.setUserData("id",1);
> label.addEventListener("execute", this._onPilihKat, this);
> ....
> ....
>
> _onPilihKat : function()
> {
> how to access the label object here? example : how to get the
> userdata("id")?
>
> because if I use "this", it will refer to the container of label, not to
> the label
> }
>
>
> Thank you
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel