On Mon, Jan 30, 2012 at 09:53, matteomasina <[email protected]> wrote:

> ok I try to explain better with one example :
>
> test.js
>
> qx.Class.define("esempio.test",
>        {
>        extend : qx.ui.window.Window,
>    properties : {
>        mia_proprieta: { init : 0, check: "Integer" }
>        },
>
...

>
> Application.js
>
> var finestra= new esempio.test();
>
>        finestra.setStatus("Applicazione pronta");
>        finestra.setShowMaximize(false);
>        finestra.setShowMinimize(false);
>        finestra.setmiaproprieta(22);
>
>        finestra.open();
>
...

>
> I try to set a value to the window property "miaproprieta"
>
> Where I'm wrong ?
>

Your property is called mia_proprieta. The setter and getter change the
first character to upper case, so in your main(), you want to call
finestra.setMia_proprieta(22)

By convention, underscores are not typically used in property names. I'd
recommend changing to:

properties :
{
  miaProprieta:
  {
    init : 0,
    check : "Integer"
  }
}

and then you'd do:

finestra.setMiaProprieta(22);

Derrell
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to