answered
2007-07-11 22:47:41 +0800
jumperchen 3909 ● 2 ● 8
http://jumperchen.blogspo...
那你需要自行在每一個row上註冊onClick的Event.
例如:
<row onClick="doSomething" ...
OR 用程式註冊,
for (Iterator it = grid.getRows().getChildren().iterator(); it.hasNext();) {
Row row = (Row)it.next();
row.addEventListener(Events.ON_CLICK, new EventListener(){
public void onEvent(Event event) throws Exception {
// dosomething.
}});
}
/Jumper