Hi Jonathan,

The Grid supports SWT.VIRTUAL that would primarily work for your scenario. 
 The virtual functionality will work like Table.  This will tell you when 
a row's data is required.  This should likely be enough but does not have 
a method to let you know when you can release data that is no longer 
necessary.  It is something you could reasonably do yourself.  Perhaps 
just set a limit on the # of model classes you want at any given time and 
when new data is required, release the least recently accessed models to 
make room. 

Regards,
-Chris



From:
"Jonathan Alvarsson" <[EMAIL PROTECTED]>
To:
[email protected]
Date:
08/07/2007 06:15 AM
Subject:
[nebula-dev] Lazy initialisation of grid


Hi. I am in the need of a spreadsheet widget that can be used for viewing 
large amounts of data. More than what would be reasonable to have in 
memory at the same time. I would need to be able to just load the cells 
currently viewed (from ex. a database). I wonder if this can be done 
(without to much work) with the Grid widget? 

My feeling is that I would have to extend the GridItem class but that 
feels a little bit like biting of more than i can chew...

Do you have any suggestions?

-- 
// Jonathan _______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to