开发者

Get ListView selected item in gxt 2.0.1

开发者 https://www.devze.com 2023-01-17 10:27 出处:网络
I have a listview(gxt) with 2 columns, Name and Address. I\'ve loaded the clients onto the listview(gxt), and now I want to select a client on the listview, a开发者_开发知识库nd each time another list

I have a listview(gxt) with 2 columns, Name and Address. I've loaded the clients onto the listview(gxt), and now I want to select a client on the listview, a开发者_开发知识库nd each time another listview box will display the Name & Address of the selected client. How can I do that?


Have a look at Listview.getSelectionModel().select(..)

Or you mean select using the mouse? You will need to listen for the Select event. In this case have a look at: ListView Java Doc, Events: Select...

0

精彩评论

暂无评论...
验证码 换一张
取 消