I'm learning about the Google web toolkit from the book "Beginning Google Web Toolkit"
I have got to the part where it starts using a Tree widget.
It uses Tree.addTreeListener() which apparently is now deprecated.
I can't work out what to use instead.
There is a class called Category and I'm creating a tree of Category.
The method below is where the problem is:
- protected Widget createCategoriesWidget() {
- Tree categoryTree = new Tree();
- categoryTree.setWidth("100%");
- categoryTree.addTreeListener(new TreeListener() {
- public void onTreeItemSelected(TreeItem item) {
- selectedCategory = ((CategoryTreeItem)item).getCategory();
- updateTasksList();
- }
- });
- List<Category> categories = getAllCategories();
- for (final Category category : categories) {
- CategoryTreeItem item = createTreeItem(category);
- categoryTree.addItem(item);
- }
- return categoryTree;
- }
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/-/7bsPH0QxLw8J.
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