Accessing the "super of this" in Java
Posted
by gerdemb
on Stack Overflow
See other posts from Stack Overflow
or by gerdemb
Published on 2010-05-18T15:19:15Z
Indexed on
2010/05/18
15:40 UTC
Read the original article
Hit count: 211
This is what I'm doing now. Is there a better way to access the super class?
public class SearchWidget {
private void addWishlistButton() {
final SearchWidget thisWidget = this;
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
// A better way to access the super class?
// something like "this.super" ...?
workWithWidget(thisWidget);
}
}
}
}
I'm programming with Google Web Toolkit, but I think this is really a generic Java question.
© Stack Overflow or respective owner