Hi Derell,

thank you for your response! We did extend the Cellrenderer class, and we
found a really easy way to add a tooltip. We added a "title" tag to display
the CellInfo content. The only problem is that when the row is focused the
title gets overridden by the FocusIndicator layer. I know I can disable it,
but this is a dynamic table and the focusIndicator is very useful for the
user to see what cell they are selecting for edit in the table.
I looked to see if there is a way to set the cellIndicator from my table, to
somehow get the title content from the cellrenderer, but the focusIndicator
doesn't know anything about the cellData. am I correct? Other than using
setShowCellFocusIndicator(
false) I could not find a solution to this problem. Do you know how I can
get around this issue?
For reference to you and qooxdoo users, I'm including the code for the
custom cell renderer I have to display the full cell  content in the title,
which acts tooltip-like in the browser:

/**
 * The default data cell renderer.
 */
qx.Class.define("il.cellrenderer.DefaultToolTip",
{
  extend : qx.ui.table.cellrenderer.Default,

  /*

*****************************************************************************
     MEMBERS

*****************************************************************************
  */

  members :
  {
    // interface implementation
    createDataCellHtml : function(cellInfo, htmlArr)
    {
        htmlArr.push(
        '<div class="',
        this._getCellClass(cellInfo),
        '" style="',
        'left:', cellInfo.styleLeft, 'px;',
        this._getCellSizeStyle(cellInfo.styleWidth, cellInfo.styleHeight,
this._insetX, this._insetY),
        this._getCellStyle(cellInfo), '" ',
        this._getCellAttributes(cellInfo),
        ' title="',
        this._getContentHtml(cellInfo),
        '">' +
        this._getContentHtml(cellInfo),
        '</div>'
         );
     }

  }
});


Thank you for your help in advance,

-Marta
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to