Hi Adam,

Yes thank you, this helps a lot - I havn't thought about that.

But am now having trouble constructing an CompositeCell with the 2
images. Can you help me a bit here with a little code example.

I have to do something like this right:

        List<HasCell<T, C>> hasCells = new ArrayList<HasCell<T, C>>();
        hasCells.add(new HasCell<T, C>() {
                // Setup the image here?
        });
        hasCells.add(new HasCell<T, C>() {
                // Setup the image here?
        });

        CompositeCell myCell = new CompositeCell<C>(hasCells) {

        // Then add the myCell to the CellTable here

Maybe you can help me in the right direction.

Thanks,
\Thomas

On 14 Okt., 19:16, Adam <asnyde...@gmail.com> wrote:
> I use CompositeCell for this type of thing.  Create a composite of 2
> cells, each with an image in them, and each cell handling "click"
> events.  Each cell can detect clicks in their respective FieldUpdaters
> and still be rendered in the same cell.
>
> Hope this helps,
> Adam
>
> On Oct 14, 9:41 am, Thomas Trebbien Pedersen
>
>
>
>
>
>
>
> <thomas.trebbien.peder...@gmail.com> wrote:
> > Hi,
>
> > I have a celltable where I would like to sort the rows by clicking
> > either a up or a down arrow. The two sort-direction arrows are placed
> > in a single cell on each row.
>
> > Now how do I add a click event to each image? I know a cell has a
> > onBrowserEvent(...) put thats for the entire cell right? What about
> > multiple images in a cell?
>
> > Does anyone have some good suggestions.
>
> > Thanks.

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

Reply via email to