On Sun, Jan 2, 2011 at 11:18, jraulperez <[email protected]>wrote:
>
> Hi, well.. after some days trying some things.. I beleive a solution is to
> create a new event, and fire it on click on containers....... but what I
> do,
> just don't works at all!! .. no idea what's the problem.. the code is so
> simple.. any help would be good received:
>
You already received one response. Here's another playground sample that
does what you're looking for.
qx.Class.define("my.Container",
{
extend : qx.ui.container.Composite,
construct : function()
{
// Use a VBox layout for this container
this.base(arguments, new qx.ui.layout.VBox());
},
events :
{
// Add a data event specific to this container
"loadCourse" : "qx.event.type.Data"
}
});
// Create one of our containers with the extra event
var container = new my.Container();
// When the container gets a "loadCourse" event, display a message with its
data
container.addListener("loadCourse",
function(e)
{
alert(e.getData());
});
// Add the container to the root
this.getRoot().add(container, { top : 10, left : 10 } );
// Create a button
var button = new qx.ui.form.Button("First Button",
"icon/22/apps/internet-web-browser.png");
// Add the button to our container
container.add(button);
// Add an event listener
button.addListener("execute", function(e)
{
container.fireDataEvent("loadCourse", "data");
});
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel