-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can i run the items of a tree:
something like:
for(int i = 0 ; i < tree.getItems().size() ; i++){
if(tree.getItemAtIndex(i).isSelected()){
doSomething();
}
}
Use the getSelectedItems method(). For example:
Set set = tree.getSelectedItems(); for (Iterator it=set.iterator(); it.hasNext();) { Treeitem ti = (Treeitem) it.next(); doSomething(ti); }
Asked: 2009-10-16 11:57:53 +0800
Seen: 159 times
Last updated: Oct 16 '09