Below is a small snippet for code for selecting/de-selecting the child checkbox in tree
TreeItem[] itm = tree.getItems();
for(int i =0; i <>
//selecting parent items
itm[i].setChecked(true); //use false for de-selecting
//getting the child items for the parent items
TreeItem[] childItm = itm[i].getItems();
for(int j = 0; j <>
childItm[j].setChecked(true);
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment