Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-18 Thread thron7
> Anyway, is there a possibility to set a validation manager to a form? You should open a new thread for a new question. -T. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-18 Thread sid_curious
@Derrell & T.: thanks for your answers! @T: I've created a widget which looks like http://qooxdoo.678.n2.nabble.com/file/n5193730/gigi1.jpg , in fact is a list which has 2 buttons (+ open a new window and select some items and after that the items are added to the list, - remove the selected ite

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-17 Thread thron7
> > You can do: > > my.cool.A.prototype.foo.call(this); Alternatively, here is a variant that avoids the superclass' class name: this.constructor.superclass.prototype.foo.apply(this, arguments); (See Playground sample http://tinyurl.com/38ae7y9) But this is generally frowned upon (Why d

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-17 Thread Derrell Lipman
On Wed, Jun 16, 2010 at 13:59, sid_curious wrote: > > hi, > > i have the same question: > > > qx.Class.define("my.cool.A", { > extend : qx.core.Object, > ... > members : { >foo : function() { > alert("A"); >} > } > }); > > > qx.Class.define("my.cool.B", { > extend : my.cool.A, >

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-17 Thread Derrell Lipman
On Thu, Apr 29, 2010 at 05:21, Eduardo Robles Elvira wrote: > I've got a class (WizardStep) which inherits from > qx.ui.container.Composite, and for convenience I've overriden the > add() method in WizardStep to add an item to an internal form instead > of adding item to the composite directly. Bu

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-06-17 Thread sid_curious
hi, i have the same question: qx.Class.define("my.cool.A", { extend : qx.core.Object, ... members : { foo : function() { alert("A"); } } }); qx.Class.define("my.cool.B", { extend : my.cool.A, ... members : { foo : function() { alert("B") }, foo2 : fun

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-04-29 Thread Eduardo Robles Elvira
On Thu, Apr 29, 2010 at 3:18 PM, thron7 wrote: > you then might wanna check this one too: > http://qooxdoo.org/documentation/1.0/classes#inheritance Well yeah I've read it but it doesn't explain what I'm trying to accomplish, it only talks about "Calling an overridden superclass method from withi

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-04-29 Thread thron7
On 04/29/2010 02:08 PM, Eduardo Robles Elvira wrote: > On Thu, Apr 29, 2010 at 1:56 PM, thron7 wrote: >> Did you mean [1] to point to >> http://qooxdoo.org/documentation/1.1/classes#inheritance ? > > Sorry for that, I missed the reference =) I meant to point to > http://qooxdoo.org/documentatio

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-04-29 Thread Eduardo Robles Elvira
On Thu, Apr 29, 2010 at 1:56 PM, thron7 wrote: > Did you mean [1] to point to > http://qooxdoo.org/documentation/1.1/classes#inheritance ? Sorry for that, I missed the reference =) I meant to point to http://qooxdoo.org/documentation/1.0/oo_feature_summary#calling_the_overridden_superclass_method

Re: [qooxdoo-devel] Calling a superclass method from a different method

2010-04-29 Thread thron7
On 04/29/2010 11:21 AM, Eduardo Robles Elvira wrote: > Hello, > > I've got a class (WizardStep) which inherits from > qx.ui.container.Composite, and for convenience I've overriden the > add() method in WizardStep to add an item to an internal form instead > of adding item to the composite direct

[qooxdoo-devel] Calling a superclass method from a different method

2010-04-29 Thread Eduardo Robles Elvira
Hello, I've got a class (WizardStep) which inherits from qx.ui.container.Composite, and for convenience I've overriden the add() method in WizardStep to add an item to an internal form instead of adding item to the composite directly. But in the constructor of the WizardStep I want to call the ori