Wednesday, June 1, 2011

Re: Action on a ImageResourceCell

See my implementation:

The call to add the column:

        // Remove Bet Column
        ClickableImageResourceCell removeCell = new ClickableImageResourceCell();
        Column<YourObject, YourObject> removeColumn = new Column<YourObjectYourObject>(removeCell) {
            @Override
            public YourObject getValue(YourObject obj) {
                return obj;
            }
        };
        removeCell.setUpdater(this);


I use a ValueUpdater instead of a FieldUpdater. The class containing the CellTable implements ValueUpdater<YourObject>, I guess you can do the same with FieldUpdater.

--
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/-/Y0htcThZVUp2ekVK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment