Select all [message #459545] |
Wed, 10 August 2005 12:08 |
Eclipse User |
|
|
|
Originally posted by: vducloux.cosmosbay-vectis.com
Hi I would like to have a select all button that selects all the element
of my table.
How can I do that ?,
thanks in advance
Victor
|
|
|
|
|
Re: Select all [message #459567 is a reply to message #459564] |
Thu, 11 August 2005 07:38 |
Eclipse User |
|
|
|
Originally posted by: vducloux.cosmosbay-vectis.com
Thank you very much, it works great !!
all this "listener" stuff is getting more clear in my head !
thanks Victor
Chris wrote:
> Chris wrote:
>
>> One way could be:
>
>
>> selectAllButton.addSelectionListener(new SelectionAdapter() {
>> public void widgetSelected(SelectionEvent selectionEvent) {
>> table.setSelection(0, table.getItemCount());
>> table.setFocus();
>> }
>> });
>
>
>
> Sorry, even neater way would be:
>
> selectAllButton.addSelectionListener(new SelectionAdapter() {
> public void widgetSelected(SelectionEvent selectionEvent) {
> table.selectAll();
> table.setFocus();
> }
> });
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04217 seconds