title: Accessing the containing class of an inner class in Java
body: <p>This is what I'm doing now. Is there a better way to access the super class?</p>
  
  <pre><code>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);
              }
          }
      }
  }
  </code></pre>
  
  <p>I'm programming with Google Web Toolkit, but I think this is really a generic Java question.</p>