PDA

View Full Version : Tree how to get selectedItem 1.0-Beta2



cdasher
29 Apr 2008, 5:39 AM
With 1.0-beta2 (from SVN trunk) I no longer see a getSelectedItem method in the Tree class. So, given a tree, how do I get the node which is selected? answer: (after reading new api docs) So , when you create the tree, you set its selection model (single or multi single in my case) and then call get selectionModel, cast it to a SingleTreeSelectionModel and the call getSelectedItem and voila.