logo       

Closure changes: msg#00075

lang.groovy.user

Subject: Closure changes

In some old scripts I had code that looked like this:

frame = swing.frame(title:'Install', location:[100,100], size:[800,400] ) {
panel(layout:new BorderLayout()) {
scrollPane(constraints:BorderLayout.CENTER){
table(model: setupTableModel) ;
}

panel(constraints:BorderLayout.SOUTH){
button(text:'OK', actionPerformed:{event | frame.dispose();
doFullInstall() });
button(text:'Download Only', actionPerformed:{event | frame.dispose();
doDownloadOnly() });
button(text:'Cancel', actionPerformed:{event | frame.dispose() });
}
}
}

This fails in beta7, I've had to change the button code to

button(text:'OK', toolTipText: 'Download and install selected items',
actionPerformed:{event | doOKAction() });

etc..

and add extra methods.

Is this expected?

Thanks,

Kevin Jones
http://kevinj.develop.com




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise