Thank you for you answer Hugh,
I did a search for _focusedRow and found that qx.ui.table.pane.Pane
holds the last focused row information as well.
The information about the selected row is spread over four classes :-(
qx.ui.table.Table
qx.ui.table.selection.Manager
qx.ui.table.pane.Pane
qx.ui.table.pane.Scroller
The following code parts should reset the selection information to the
initial state:
1. qx.ui.table.Table: the constructor contains the following initial code:
this._focusedCol = 0;
this._focusedRow = 0;
2. qx.ui.table.selection.Manager: the clearSelection method call should
be sufficient.
3. qx.ui.table.pane.Pane: the _focusedCol and _focusedRow attributes are
uninitialized so we have to delete them.
4. qx.ui.table.pane.Scroller: : the _focusedCol and _focusedRow
attributes are uninitialized so we have to delete them.
I ended up with the following method for qx.ui.table.Table for the
ultimate de-selection of table rows:
clearSelection : function()
{
this._focusedCol = 0;
this._focusedRow = 0;
var scrollerArr = this._getPaneScrollerArr();
for (var i = 0; i < scrollerArr.length; i++) {
delete scrollerArr[i]._focusedRow;
delete scrollerArr[i]._focusedCol;
delete scrollerArr[i]._tablePane._focusedRow;
delete scrollerArr[i]._tablePane._focusedCol;
}
this.getSelectionModel().clearSelection();
},
Hugh Gibson schrieb:
> Have you looked at setFocusedCell? That sets table._focusedRow which is
> used in table._onkeydown for keyboard navigation. Therefore you need to
> call setFocusedCell even if you aren't showing the focus indicator.
>
>
> The API is hacky here - if you don't show the focus indicator then the
> only thing that affects is the actual display of it, not the underlying
> handling of it (see qx.ui.table.pane.Scroller._updateFocusIndicator for
> where it is hidden). So, for example, if you press the right and left
> arrow keys in a table you are setting focus to the next column but you
> can't see it. At some point you will be on the last column and moving one
> more to the right will move to the next row. But your users can't see
> that.
>
> Hugh
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel