I tried something and this works, but I don't know how and why.

List<HasCell<Foo, ?>> bar = new ArrayList<HasCell<Foo, ?>>();
bar.add(new Column<Foo, String>(new Cell()) {

        @Override
        public Cell<String> getCell() {
                return cell;
        }

        @Override
        public FieldUpdater<Foo, String> getFieldUpdater() {
                return null;
        }

        @Override
        public String getValue(Foo object) {
                return "caption";
        }

});
celltable.addColumn(new Column(new CompositeCell<Foo>(bar)) {
        @Override
        public Object getValue(Object object) {
                return null;
        }
}, "column caption");

On Oct 11, 2:37 pm, Spitzname <[email protected]> wrote:
> Hi,
> I tried to use a CompositeCell in a Celltable, but with no success.
> Can anyone write me a short example to add a column as CompositeCell
> in the CellTable, please? I miss some short introduction to this
> powerful topic and unfortunately the use is very inconsistent.
>
> Thanks in advance!

-- 
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