我是My frontend :-
My account Details with address :-
User name :- test@gmail.com
Password :- test
Address details :-
State :- New York ,
Postal Code :- 10003,
Country :- United States
的新用户,当我在列表网格中选择特定记录时,我需要打开另一个窗口。以前我使用的是SmartGWT
,但我无法继续使用,因为有数百条记录要显示。那我该怎么做呢?
答案 0 :(得分:1)
ListGrid list = new ListGrid();
//list configuration goes here
list.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event){
//Get the clicked record
Record row = list.getSelectedRecord();
//Check if thats the record you want
if(row != null && row.getAttribute("attribute").equals("thingToCheck"){
//Now just open the window
Window window = new Window();
//Configure here the window
window.show();
}
}
});