palexdev / VirtualizedFX

GNU Lesser General Public License v3.0
46 stars 4 forks source link

Question about VirtualGrid #10

Closed ouaibsky closed 1 year ago

ouaibsky commented 1 year ago

Hi

I's more q question to help to understand if VirtualizedFlow could be a replacement for my usage of GridView (ControlFx).

I browsed a little bit the code and can you confirm:

Thx in advance Chris.

palexdev commented 1 year ago

Hello @ouaibsky, You are correct VirtualizedFX offers the building blocks for List, Grid and Table views. So, there are no selection models.

There are several, methods that allow you to scroll programmatically, but there's no scrollTo(T) I didn't think about it because it could be quite heavy on performance for huge lists since you'd have to first get the index of the item through indexOf(T) The behavior can be easily achieved though since there's a similar method scrollTo(index)

Edit: I just realized that you asked about VirtualGrid. There are similar methods to the ones described above for the grid too. However, my implementation is completely different from others who still use a VirtualFlow as "backend". My grid is a real grid. Even the used data structure is not a List but an observable and dynamic matrix

Please make sure to read both the README and javadocs, everything is well described and documented. I just want to remember that this section is for issues not questions

ouaibsky commented 1 year ago

Understood, thx for your answer.