Hello Jonathan,

after having done some other work I now continued building my qooxdoo app
and stick again when coming to the Multiline HeaderCells.

I got my class extension:

<code>
qx.Class.define("pmaster.ui.table.headerrenderer.MultilineHeaderCell",
{
  extend : qx.ui.table.headerrenderer.HeaderCell,

  construct : function()
  {
    this.base(arguments);
  },

  members :
  {

    // overridden
    _createChildControlImpl : function(id)
    {
      var control;

      switch(id)
      {
        case "label":
          control = new qx.ui.basic.Label(this.getLabel()).set({
            anonymous: true,
            allowShrinkX: true,
            rich: true
          });

          this._add(control, {row: 0, column: 1});
          break;
      }

      return control || this.base(arguments, id);
    }
  }
});
</code>

The class is being loaded correctly - so it's no more the namespace which
causes the error (I checked this already by changing the classname to
"pmaster.MultilineHeaderCell"). I now get the following error:

---
cellRenderer.createHeaderCell is not a function
/qooxdoo/framework/source/class/qx/ui/table/pane/Header.js
Line 300
---

I didn't find out how this function is called / what this has to do with my
headercell extension (removing the above extension fixes the problem I
think).

BtW: I'm using r20065 trunk version.

Thanks for help,
Daniel



Jonathan Weiß-2 wrote:
> 
> It seems the you dont't have a "pricemp.ui" namespace. You do not need  
> to match the namespaces.
> Using just
> qx.Class.define("pricecmp.HeaderCell", ..........
> is fine.
> 

-- 
View this message in context: 
http://www.nabble.com/multiline-table-header-cells-tp24738289p25363944.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to