• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. SWT Trees > Determining the Checked Item(s)

13.9. Determining the Checked Item(s)

If you use the SWT.CHECK style, you need to determine what item or items have been checked by the user.

13.9.1. How do I do that?

You can determine whether a particular item is checked or unchecked by calling the TreeItem getChecked( ) method. The following code loops through the Tree and determines the status of each TreeItem it finds:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint