Porque no pruebas poniendo directamente el metodo setDecorator, recuerda que el
parametro puede ser
"This can be a decorator object or a string pointing to a decorator defined in
the decoration theme. "
De todas formas prueba poniendo por String el nombre de un decorador propio de
qooxdoo a ver que pasa. Dime resultado
----- Mensaje original -----
De: "Krull" <[email protected]>
Para: [email protected]
Enviados: Jueves, 24 de Octubre 2013 10:25:01
Asunto: [qooxdoo-devel] Decorator problem with a Custom Library - QX3.0.1
Hello everybody,
I'm using Qooxdoo 3.0.1
I've created A 1st application with custom theming
"""
qx.Theme.define("qxappl1.theme.Decoration",
{
extend : qx.theme.modern.Decoration,
decorations :
{
"Appl1-header" :
{
style :
{
width : 1,
color : "border-main",
backgroundColor : #3580D2"
}
}
}
});
------------
qx.Class.define("qxappl1.Appl1Header",
{
extend : qx.ui.container.Composite,
construct : function(titleR, userR, versionR)
{
this.base(arguments);
this.__createUI(titleR, userR, versionR);
},
members :
{
__createUI : function(titleR, userR, versionR)
{
var myDock = new qx.ui.layout.Dock();
myDock.setSort("y"); // y-axis first, flex growing
this.setLayout(myDock);
this.set({decorator: "Appl1-header", height: 50});
...
}
}
});
"""
==> Application 1 works fine when I call "qxappl1.Appl1Header"
I've created a 2d application that call the 1st one
in the config.json I put :
"""
"libraries" :
{
"library" :
[
{
"manifest" : "C:/project/qxAppl1/Manifest.json"
}
]
}
"""
No problem with compilation but when I call "qxappl1.Appl1Header", I get an
error:
"""
Error: Error in property decorator of class qxappl1.Appl1Header in method
setDecorator with incoming value 'Appl1-header': Is invalid!
"""
Does someone know why ? Do I forget something ?
Thanks in advance
Krull.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Decorator-problem-with-a-Custom-Library-QX3-0-1-tp7584823.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del
2014. Ver www.uci.cu
--
Pregúntate si lo que estás haciendo hoy, te acerca al lugar donde quieres estar
mañana.
Besos, Jany.
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del
2014. Ver www.uci.cu
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel