answering myself:

I came up with the following solution which uses qx.Class.patch:

qx.Mixin.define("my.ui.tooltip.PManager",
{
   /*
   
*****************************************************************************
      MEMBERS
   
*****************************************************************************
   */

   members :
   {
     _applyCurrent : function(value, old)
     {
       this.base(arguments,value,old);
       if(value) {
         value.setRich(true);
       }
     }
   }
});
qx.Class.patch(qx.ui.tooltip.Manager, my.ui.tooltip.PManager);

qx.Class.patchwraps the the old overwritten/patched member so it is 
accessible to the this.base call:

https://github.com/qooxdoo/qooxdoo/blob/35db87d/framework/source/class/qx/Class.js#L1336

Not ideal, but it works.

Regards
Dietrich Streifert

Am 28.03.2012 12:44, schrieb Dietrich Streifert:
> Hi all!
>
> I need to change the tooltip manager in order to use rich text (html) 
> tooltips for form items having an invalid message (value in property 
> invalidMessage).
>
> The only way I currently can think of is to copy qx.ui.tooltip.Manager 
> over to my namespace and modify the code because deriving from 
> singleton classes is not working 
> (http://bugzilla.qooxdoo.org/show_bug.cgi?id=3005).
>
> Other ways to get this working would be to have one of the following:
>
> 1. add a richErrorText property to qx.ui.tooltip.Manager which creates 
> the error tooltip accordingly.
>
> 2. allow the "rich" property of qx.ui.tooltip.ToolTip to be themable 
> which would allow to override the rich property via a modified 
> appearance in my own theme.
>
> Does anyone have another idea?
>
> Thank you for your help.
>
> Regards
> Dietrich Streifert
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to