I created an abstract cell using uibinder and UiRenderer. My datasource is 
a list of a list. Lets say list of cars and each car has a list of models. 
I adding the cells to a CellList. Each cell is like like a card with 
forward and backward button on top(Im using arrow images and handling click 
event using uihandler) and the card display model's property. The forward 
and backward image on click show the next and the previous model 
respectively. Im not been able to change the model_name(and other divs) 
when images are clicked.

<table width="100%" border="1" cellpadding="2" cellspacing="2"
                        bgcolor="#ffffff">
                        <tr valign="top">
                            <td>

                                <div ui:field="left" >
                                     <ui:safehtml from='{leftArrow}' /> 
                                </div>

                            </td>
                            <td>

                                <div id="model"><ui:text from="{model_name}" 
/></div>

                            </td>
                            <td>

                                <div ui:field="right" >
                                    <ui:safehtml from='{rightArrow}' /> 
                                </div>

                            </td>
                        </tr>
                    </table>

Im not sure how to access the text inside the model div. And subsequently 
there are more divs whose value/text changes when the images are clicked.

@UiHandler({ "right" })
void onRightArrowClicked(ClickEvent event, Element parent, Car car) {



    List<Model> models = car.getModels();
    //not sure how to change the text of model_name and other divs

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to