qooxdoo

Fields are as static fields in Qooxdoo library

丶灬走出姿态 提交于 2019-12-05 22:01:08
I'd like to use qx-oo (Qooxdoo) as OOP library. But I was confused by strange behaviour of field members. It's looks like that fields are shared between all objects of one class, like static members. For example, this test code qx.Class.define("com.BaseClass", { extend : qx.core.Object, members: { _children: [], getChildrenCount: function(){ return this._children.length; }, addChild: function(child){ this._children.push(child); } } }); var class1 = new com.BaseClass(); var class2 = new com.BaseClass(); showLog("class1.getChildrenCount() - " + class1.getChildrenCount()) showLog("class2

Infinite scroll in qooxdoo with virtual list

China☆狼群 提交于 2019-12-05 03:27:22
问题 I have create a virtual list that when the user scroll on top or at the bottom of the list, then new data is added in the model of the virtual list. This seems to work fine. My problem is that the items of the virtual list have not the same height, so I need them to be able to configure the row height them self after or before they appear on the user screens. To accomplish that, I add the following code in the bind delegate item.addListenerOnce("appear", function() { var height = item

Change color of TextArea words

亡梦爱人 提交于 2019-12-04 05:55:29
问题 Is there a way to change the color of certain words in a TextArea? For example, "There are three possums in the road." I would like to color 'possums' red. 回答1: qooxdoo does use a native TextArea so it depends on the native TextAreas capabilities. As TextAreas do not support that feature, we can't do much about it. See also answers on the following questions for further information: Change the Color Of Certain Words In Textarea using Jquery? Multicolor Text Highlighting in a Textarea or Text

Infinite scroll in qooxdoo with virtual list

落花浮王杯 提交于 2019-12-03 20:53:57
I have create a virtual list that when the user scroll on top or at the bottom of the list, then new data is added in the model of the virtual list. This seems to work fine. My problem is that the items of the virtual list have not the same height, so I need them to be able to configure the row height them self after or before they appear on the user screens. To accomplish that, I add the following code in the bind delegate item.addListenerOnce("appear", function() { var height = item.getSizeHint().height; pane.getRowConfig().setItemSize(id, height); }, this); This seems to do the trick for

Resource interpreted as Font but transferred with MIME type application/x-font-woff

落爺英雄遲暮 提交于 2019-11-30 06:16:16
问题 I followed the Web Fonts tutorial in qooxdoo documentation to add a web font to Font.js , but I notice there is a warning in Chrome's Developer Console: My code is as follow: /* ************************************************************************ #asset(myApp/fonts/*) ************************************************************************ */ qx.Theme.define("myApp.theme.Font", { extend : qx.theme.simple.Font, fonts : { "silkscreen" : { size: 8, lineHeight: 1, family: [ "silkscreen",