Community
Participate
Working Groups
In org.eclipse.swt.widgets.TableItem make the boolean cached available to developers: Add function to make the private "cached" field accessible to the public. public boolean isCached() { return cached; } This added function allows developers to know whether it is required to update the contents of a tableItem in a (VIRTUAL) SWT table. Reason for this feature: Say you have a virtual list of 500K items, with 100 table items viewed by the user (cached is true). Through some background activity, 500 list items change and their text values must be updated.. but only 1 item has been drawn (and is "cached"). By knowing this, we can just update the "visible" or recently viewed. All other tableitems will be redrawn correctly when the user scrolls through the data, using the virtual mechanism already in place. I use this in my Tables to "redrawRow(Obect t)" and redrawRows(ArrayList l) so that I can speed up updates to the list. Thanks.
see Table#clear(int) Table#clear(int,int) Table#clear(int[]) Table#clearAll()