Parent Node or Child Node in Blackberry Tree Field?
问题 I need to traverse a Tree Field in Blackberry . I need to know how to check from the existing node whether it is a parent node or child node ? Since I need a different row color for Child rows and Parent rows I have referred a previous question of Customising TreeField as seen in link below Customising Blackberry Treefield 回答1: It looks like you're already using the TreeFieldCallback to customize painting of your tree field. You can detect parent vs. child nodes here in drawTreeItem().