I see my confusion, the API Reference shows the TablePane as being part of the Table not the PaneScroller. That is why none of my attempts to get a handle to it worked. There is no indication in the API Reference of this hierarchy, perhaps it should be looked at to make the proper changes.
This looks like a great example of something that screams for a shortcut from the Table object. You should be able to ask the Table how many visible rows it has a find out.

Thanks,
Jim


On 8/18/06, Til Schneider <[EMAIL PROTECTED]> wrote:
> Turns out that moveFocusedCell works very well to move the
> highlighted row around but it doesn't move the selected row.

The selection is managed by the SelectionModel. In order to set the
selection (the dark blue one, not the focus), you have to call this:
     mytable.getSelectionModel().setSelectionInterval(myrow, myrow);

> I have not checked yet, but is there a property that I can look at to
> tell me how many visible rows there are?

This is how to get the number of visible rows:
     var scroller = this._getPaneScroller(0);
     var pane = scroller.getTablePane();
     var rowCount = pane.getVisibleRowCount() - 1;

You should use one row less than the real visible row count (like in the
example), because the last row may be only half visible and if you
scroll the full amount, then you don't see that row in a whole.




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to