On Fri, Jan 8, 2010 at 10:57, Jörg Sawatzki <joerg.sawat...@web.de> wrote:
> Hi folks, > > I have got a table with a sidebar displaying additional information > related to the currently focused cell. For now, I am listening for a > "cellClick" event on the table, that works quite well. But: Is there a > way to get notified if the position of the focus indicator by keyboard > and not by mouse? > > Thanks > > Jörg > I created bug #3314 and attached a patch. The patch makes the focus indicator instantiation customizable like most other internal-use classes. Please apply the patch and ensure that things still work exactly as they do currently. Once you've confirmed existing behavior, you can then create a new, small class, something like this untested snippet, to do what you require: qx.Class.define("custom.FocusIndicator", { extend : qx.ui.table.pane.FocusIndicator, events : { "focusChanged" : "qx.event.type.Data" }, moveToCell : function(col, row) { this.base(arguments, col, row); this.fireDataEvent("focusChanged", { col : col, row : row }); } }); Then when you instantiate your table, you pass a newFocusIndicator member in the 'custom' parameter: var newFocusIndicator = function(obj) { return new qx.ui.table.pane.FocusIndicator(scroller); }; var table = new qx.ui.table.Table(tableModel, newFocusIndicator); With that, you should get a "focusChanged" event whenever the focus changes for any reason. Hope that works and helps. Please confirm, and I'll apply the patch to trunk. Derrell
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel