[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Table with paging
|
Hi Ivan,
If I understand your description correctly, it sounds like you just want to
dispose() all old TableItems and create a new set of TableItems whenever the
user pages up or down, right? If so then there's no magic way to do this
beyond what's described in the previous sentence.
However, a follow-up question: Is your motive for doing this that populating
your Table with a large amount of data upfront is too expensive? If so then
SWT.VIRTUAL is your friend since it allows you to fill in TableItems only as
they're needed (ie.- scrolled to by the user). For an example of this see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet144.java?rev=HEAD&content-type=text/vnd.viewcvs-markup .
If neither of these suggestions answered what you're looking for then please
follow up.
Grant
"Ivan" <zorziivan83@xxxxxxxxxxx> wrote in message
news:0838f0debb995f0cd29b745f2c1149c4$1@xxxxxxxxxxxxxxxxxx
> Hi all,
> I have an application that shows in a Table a quite large amount of data.
> Till now I let the Table to be "scrollable", but I would like to introduce
> a sort of paging (for example, the Table shows only 10 rows and then with
> two buttons NEXT and PREV the user can look at the data) but I am not able
> to find some help/snippet to do it.
> Does anybody have some idea? Does anybody already implemented something
> like that?
>
> Thanks in advance.
>
> Ivan
>