>
> But why is this not documented? I tried to set
> qx.theme.manager.Icon.setTheme(qx.theme.icon.Oxygen), with out success. I
> would never imagin to use getInstance. And could not find any example.
>
>
qx.theme.manager.Icon is a singleton (and the API defines it as such too).
This mean that one and only one instance of this class will ever exist (you
can't use new to get new ones). That instance is born the first time you
call getInstance and never dies (this mean that every call to getInstance
will give you the exact same object you got the first time).
It is a well-known pattern. You can use it in your own code two, it's
documented here:
http://qooxdoo.org/documentation/0.8/oo_introduction
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel