As I see this will be new instance of ClickHandler -
new ClickHandler() {
public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(symbol);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex+1);
}
}
There is now such field in class definition 'symbol'. This is the
thing that I find strange, and why compiler was ok...
I suppose this is the same as
new ClickHandler() {
private String s = symbol;
public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(s);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex+1);
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.