I have a Cell Table of which the last column is a checkbox. I would like to 
add a Check-All-Box as a footer that when clicked selects every checkbox 
for every row. Somehow it won't work here is what I got so far:

private Header<Boolean> initFooterUnSelectAll(){

    ValueUpdater<Boolean> updater = new ValueUpdater<Boolean>() {
        @Override
        public void update(Boolean value) {
            for (Object task : getVisibleItems())
                task.setSelected(value);

            selectAllValue = value;
        }
    };

    Header<Boolean> footer = new CheckboxFooter(updater) {
        @Override
        public Boolean getValue() {
            return selectAllValue;
        }
    };  
    return footer;}



private void addColumn() {...

 //Header
 Header<String> header = new Header<String>(new TextCell()) {
          @Override
          public String getValue() {
              return "HEADER";
          }
 };     

 addColumn(COLUMN, header, footerSelectAll());

Does anyone know what I'm doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0PeWIR5OxakJ.
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