title: How do you get a reference to the enclosing class from an anonymous inner class in Java?
body: <p>I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class.  Is there a better way to do this?</p>