Hi Samuel, Here's an outline of solution that can you may want to use (frankly speaking, I haven't gone in depth of your code):
1. Create an ArrayList<Checkbox> of all checkboxes 2. Add a ValueChangeChandler (if interested in only value) or ClickHandler (if you want instance reference as well). No specific preference in this case... feel free to choose anyone. 3. To get all checkboxes selected, iterate through all the checkboxes in the ArrayList created earlier and use getValue() method to get if it is selected or not. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 20, 11:55 pm, joelsamuel <[email protected]> wrote: > Background: > > Hello I am quite new to GWT and Java. I have an application which > helps students select courses. The application starts and the user > clicks on a department. When they click on the department the courses > offered by that department are shown with check boxes next to each > course. > > Objective/Problem: > > What I need to do is have a separate panel called the "summary panel" > that shows a summary of the users selections. I need to keep track of > the current selections in some variable that can be used to populate > the new widget. > > Questions: > For my checkboxes, how do I call a method to set the check box as > checked or unchecked depending on its state when clicked and then show > the users selections when something is clicked? The summary panel > also needs to be updated on each change in the course selection. My > code is below, any help would be appreciated. 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 [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.
