Hi Matt,

thanks for your reply.

now i have a new problem with my property.
in an abstract class i define the following:

qx.Class.define("travelagent.impl.fe.travelplaner.uis.AbstractMediator", 
{
  type: "abstract",
  extend: qx.ui.container.Composite,
  
  properties: {
        journeyContainer : {inheritable:true}
  },
...
}

then i derive a new subclass with more properties:

qx.Class.define("travelagent.impl.fe.travelplaner.uis.DestinationWidget",{
        
        type: "abstract",
        extend: travelagent.impl.fe.travelplaner.uis.AbstractMediator,
        
        properties: {
                destinationData : {inheritable:true, nullable:true},
                clockWidget : {nullable:true,inheritable:true},
                calendarWidget : {nullable:true,inheritable:true},
                mapWidget : {nullable:true,inheritable:true}
        },
...
}

My concrete class derives from the DestinationWidget class

qx.Class.define("travelagent.impl.fe.travelplaner.uis.StartWidget",{
        
        extend:travelagent.impl.fe.travelplaner.uis.DestinationWidget,
...
}


Another class set the journeyContainer:

this.__startWidget.setJourneyContainer(this)

when i call the getter in the startWidget, i get a null value. why? i thought 
that the property is inherit from AbstractMediator to StartWidget.


My second problem concerns the init-process. 

i have tried the following:

properties: {
 newTest:{nullable:true} //i guess this is the same like newTest = null;
}

now i want to init the property in my constructor like:

this.initNewTest("hello");

Firebug says that the function ist undefined. how can i init my properties?

Thanks for your help,
Robert

-------- Original-Nachricht --------
> Datum: Wed, 03 Jun 2009 14:07:50 +0100
> Von: Matthew Gregory <[email protected]>
> An: [email protected]
> Betreff: Re: [qooxdoo-devel] Property usage

> You should use this.getTest()
> 
> If you already are could you post more of your code?
> 
> HTH,
> Matt
> 
> Robert Wende wrote:
> > Hello,
> > 
> > i have problem with the properties.
> > my property-definition looks like:
> > 
> > properties: {
> >   test:{init:"hello"} 
> > },
> > 
> > and in the constructor i want to use the getter:
> > getTest()
> > 
> > but firebug says "getTest() is not defined".
> > 
> > Can u help me?
> > 
> > Thanks,
> > Robert
> 
> 
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-- 
GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to