Power table, visible rows

Is it possible to determine which rows are visible in a power table? A list with row numbers would be nice.

1 Like

Psst! A power table is a Vision component, not Perspective.

@Henk You might find this useful.:

2 Likes

Dough! My bad

1 Like

There's no easy way to return which rows are visible, because which rows are visible is the responsibility of the component and its parent scroll pane, not the responsibility of the underlying table model. It's technically possible; basically you could use the inner Java Swing functions to determine what the row is at the top of the table and what the row is at the bottom and then interpolate the two (assuming you're not doing any filtering...)

But the better question is probably: What are you ultimately trying to do?

2 Likes

The power table is filled with process information. The customer wants with a push of a button to ‘accept‘ all visible rows without selecting them.

This seems very fragile to me. What happens if the user scrolls to where only part of a row is visible? The program can only intrepret a row as visible or not visible and this could lead to rows not being accepted that were expected to or worse, rows being accepted that wern't intended to be.

2 Likes