> > But there is still some problem, if I want to add a delete button after > each row, is it very difficult?Or the easier method is add a checkbox > before the listbox in class CompositePanel and then add a "delete" button > (one and only one for the HATestPanel, not per row) to the HATestPanel? > If you add a Button to each composite panel you can call CompositePanel.removeFromParent() to delete itself from the view. If you add a CheckBox in each composite panel and a single delete Button in HATestPanel you first have to find all composite panels (same loop as for your submit button) which are checked for deletion (implement a isChecked() method in CompositePanel) before calling removeFromParent() on them.
Its up to you. -- 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/-/uUV6lQ19IOEJ. 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.
