Hey,

he table's pane scroller offers two protected methods so convert from mouse 
coordinates to row / column: 

_getRowForPagePos(pageX, pageY)
_getColumnForPageX(pageX)

So I would suggest to override the qooxdoo pane scroller and offer a method 
which returns the cell (row / column) for a given mouse position. You can 
easily hand in your custom scroller using the 'custom' argument of the table's 
constructor.

Regards,
Martin



Am 13.11.2012 um 17:19 schrieb Golubkov Dmitry <[email protected]>:

> Hello,
> 
> We use qx.ui.treevirtual.TreeVirtual and we want to show tooltip,
> based on TreeVirtual cell data. To show tooltip over cell we set
> focusCellOnMouseMove property to "True" and on "mouseMove" event call
> getFocusedRow() and getFocusedColumn() methods to get column/row
> index, set tooltip_text show it as tooltip.
> 
> In this case we have a problem. If we push Home or End keyboard
> buttons and mouse pointer placed over existing grid row, all ok. But,
> if we place mouse pointer out from existing grid row we get an error
> message to browser debug console, such as:
> 
> 423526 Assertion error! Invalid argument 'col'.: Expected value to be
> an integer but found 'undefined'!
> Stack trace:
> qx.core.AssertionError.constructor(),qx.core.AssertionError.constructor(),qx.core.Assert.__fail(),qx.core.Assert.assertInteger(),qx.type.BaseString.prototype.assertInteger(),qx.ui.table.columnmodel.Basic.prototype.getVisibleX(),qx.ui.table.Table.prototype.scrollCellVisible(),qx.ui.table.Table.prototype.setFocusedCell(),qx.ui.table.Table.prototype._onKeyPress(),qx.core.Object.prototype.base(),qx.ui.treevirtual.TreeVirtual.prototype._onKeyPress(),qx.ui.core.EventHandler.prototype._dispatchEvent(),qx.event.dispatch.AbstractBubbling.prototype.dispatchEvent(),qx.event.Manager.prototype.dispatchEvent(),qx.event.handler.Keyboard.prototype._fireSequenceEvent(),qx.event.handler.Keyboard.prototype._idealKeyHandler(),anonymous(),qx.event.handler.Keyboard.prototype.__onKeyUpDown(),anonymous()
> ErrorHandler.js:48GUI Expected value to be an integer but found 'undefined'! 
> in
> file:///home/.../build/libs/qooxdoolib/framework/source/class/qx/core/Assert.js:79
> 
> This situation shown on the following video:
> https://dl.dropbox.com/u/140674/test-0000.mpeg. This bug repeats only
> after when TreeVirtual lost focus and took it again (e.g. we click on
> TreeVirtual, then choose another tab, then choose tab with TreeVirtual
> an click it on space out of existing rows).
> 
> If we set focusCellOnMouseMove property to false, bug not reproduced,
> but we can't show tooltip correctly, because getFocusedRow() and
> getFocusedColumn() methods of TreeVirtual returns null in this case.
> We can't get row and col cell index under mouse pointer.
> Is we have another way to show tooltip, based on cell data? If not,
> how to fix bug with Home and End buttons?
> 
> -- 
> Dmitry Golubkov,
> BrainBean Corp.
> 
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to