I believe u are talking about CellTable widget. If so..

Define a Header object;
Implement the getValue method.

The header accepts a cell object in its constructor.
U can define any Cell like CheckBoxCell etc.

CheckboxCell cb=new CheckboxCell();
Header<Boolean> hdr=new Header<Boolean>(cb) {
                    @Override
                    public Boolean getValue() {

                        return false;//return true to see a checked
checkbox.
                    }
                };

CellTable ct=new CellTable();
ct.addColumn(colCell,hdr);

colCell is defined elsewhere.

Hope this helps.

Thanks,
Subhro.

On Wed, Dec 15, 2010 at 1:00 PM, Diyko <[email protected]> wrote:

> I thought it should be easy
> Help
>
> On 14 Грд, 21:17, Diyko <[email protected]> wrote:
> > I need add checkbox in header and implement "check/uncheck all rows"
> > functionality?
> > Anybody did it already?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to