On Mon, Mar 22, 2010 at 09:22, danovics <[email protected]> wrote:
>
> My goal is not to set the focus on a cell, but to have the possibility to
> give to a table (or table's subclass) the focus or activation the way that
> after that the user could jump between the table's rows using his
> keyboard's
> up and down keys.
>
> I made a little debugging from which I've found out that when the user is
> able to change the selected row in a table with keyboard the active widget
> is: qx.ui.table.pane.Pane[yk].
> If I focus a cell with the methot you mentioned the active widget would be:
> qx.ui.table.pane.Scroller[x2].
>
> It shows to me that I need to activate that instance of
> qx.ui.table.pane.Pane.
> BUT I haven't found the way to get the table's pane.Pane yet.
>
Getting the first scroller's pane object is fairly easy. Try this:
var scroller = table.getPaneScroller(0);
var pane = scroller.getTablePane();
If you have multiple meta columns in your table, then there will be multiple
scrollers, each with its own pane. The above code will still work to get you
to the left-most scroller's pane, but you'll need some additional code if
you're trying to set focus someplace other than in the left-most meta
column. The parameter to table.getPaneScroller() is the meta column whose
scroller you want to obtain.
Hope that helps.
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel